QueryPHP is a modern high-performance PHP7 resident framework, with the historical mission of engineering user experience, so that every PHP application has a good framework.
100% unit test coverage, facing bugs with a sword, implementing framework persistence based on Zephir, and relying on Swoole ecology to achieve business persistence, which is gradually improving in the future. Our vision is USELEEVELWITHSWOOLEDOBETTER, allowing your business to support more user services.
Two years of reconstruction, just for a better self
QueryPHP is developed based on DoYouHaoBaby, a PHP framework founded in 2010. It inherits the excellence of the previous generation product, completely innovates it and undergoes a 2-year reconstruction.
On this basis, we have introduced modern and advanced features of frameworks such as Laravel and Symfony, standing on the shoulders of giants to maintain innovation.
QueryPHP is a progressive PHP resident framework. What we emphasize is a progressive one. It can run in the php-fpm scenario or compile the core framework into a C extension. It also supports running in the swoole service.
#Run in php-fpm scenario or PHP built-in webserver
In fact, QueryPHP is also an ordinary PHP framework. The current minimum version requires PHP7.1.3. We have no special requirements for the environment.
Framework concept (a sense of mission worth entrusting, so that every PHP application has a good framework.)
Component system (the bottom layer of the framework is composed of independent high-cohesion and low-coupling components, which can be easily integrated into existing systems without intrusion.)
Routing system (the framework provides MVC automatic routing and can intelligently parse Restful requests and swagger-php annotation routing based on the OpenApi3.0 specification, and document routing is completed in one step.)
Overall solution (the framework provides a large number of out-of-box functions from cache, Session, IOC container, template engine, DddORM, etc., and provides a command line tool set based on SymfonyConsole.)
Framework resident (Leevel optional extension takes over the underlying core)
Business resident (based on Swoole4 development, our vision is to have a small amount of code or no modification, so that your business can support more user services.)
100% unit test coverage (unit testing has always been a pain for domestic PHP open source projects)
Learn from foreign modern frameworks (absorbing a lot of features from Laravel and Symfony, as well as other frameworks.)
PHP7 strict mode (every PHP script has strict_types=1)
PHP7 type hints (only certain parameter types and return value types are possible for each method)
Dependency injection (complete implementation, key mvc, command line scripts, event listeners are all connected to IOC)
Domain-driven design (maintaining innovation based on QeePHP of Monster, providing UnitOfWork [transaction work unit], Repository [warehousing], Specification [query specification], Entitygettersetter [domain entity or model])
more...
#Todo
QueryPHP is still under development, and here are some features that are not yet supported but are planned:
Improve Swoole based on Vue+IView universal permission system
Development Documentation We welcome you to contribute to the development of QueryPHP.