QueryPHP 1.0.3 only does compatibility processing for PHP 8.0 and PHP 8.1, and fixes the code and test cases under PHP 8.
QueryPHP 1.1.0 uses the new features of PHP 8 to optimize and process the code. A better type system uses the underlying code to be more concise and more reliable.
For example, using match expressions and attribute promotion, the code is more streamlined and cleaner. The PHP 8 type system is relatively complete. The @var tags of all system attributes and the @params of all functions and methods have been deleted. Because each type has a certain value, it can be completely deleted from the docblock.
Because PHP 8 has not been released, and the composer package that the system relies on has not yet supported PHP 8, running QueryPHP-1.1.0-alpha.1 requires compiling an RC version of PHP 8. Then, composer can be installed and run by ignoring the version when installing.
composer create-project hunzhiwange/queryphp myapp dev-master --ignore-platform-req
php leevel server <Visite http://127.0.0.1:9527/>
-
Production-Ready (production available)
-
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 and without intrusion into the existing system.)
-
Routing system (The framework provides MVC automatic routing and can intelligently parse Restful requests and swagger-php annotation routing based on the OpenApi 3.0 specification. Document routing is done in one step.)
-
Overall solution (The framework provides a large number of out-of-the-box functions from cache, Session, IOC container, template engine, Ddd ORM, and provides a command line tool set based on Symfony Console.)
-
High quality (100% unit test coverage faces the bug, and is committed to creating high-quality products Level Level Leevel.)
-
Business coroutineization (based on Swoole 4 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 (more than 3,500 test cases to ensure system reliability and sustainable maintenance.)
-
PHP 7 strict mode (Every PHP script is strict_types=1. Strict mode can avoid potential bugs caused by many weak types.)
-
PHP 7 type hints (as much as possible, provide certain parameter types and return value types for each method, as well as type support for class attributes.)
-
Dependency injection (complete implementation, key MVC, command line scripts, and event listeners are all connected to the IOC container.)
-
Domain-driven design (supports UnitOfWork transaction work unit, Repository storage, Specification query protocol, Entity Getter Setter domain entity, etc.)
-
Avoid working behind closed doors (QueryPHP has always absorbed some excellent designs from frameworks such as Laravel and Symfony, and we have also carried out a lot of innovative designs ourselves.)
-
More features look forward to your discovery...
Feature update
Framework core framework
Optimize the code with the new features of PHP 8.0.
Application
Optimize the code with the new features of PHP 8.0.
Development route
1.0. In the maintenance phase, 1.1.* series are opened.
composer create-project hunzhiwange/queryphp myapp php leevel server <Visite http://127.0.0.1:9527/>
php leevel http:server <Visite http://127.0.0.1:9527/>
/data/server/roadrunner-1.8.2-darwin-amd64/rr serve -d -v # -d = debug <Visite http://127.0.0.1:9527/>
cd /data/codes/queryphp/frontend npm install npm run dev cd /data/codes/queryphp php leevel server http://127.0.0.1:9528/#/login