这种构思并没有出现的过早,因为并不符合绝大部分FPM/CGI的运行。 可能出现的比较晚,octane可能会出现最多4年+,而webman则可能是22年的产物。 传统的PHP CGI则需要对脚本进行不停的【启动】、【载入内存】等等,最后再【执行】、【内存销毁】 or 【保存到硬盘】。 面对当今互联网环境上越来越大量和越来越复杂的请求,显然这样的模式并不适合今天的环境。 而laravel则作为一个以控制反转(IoC)和面向切面(AOP)的框架程序,随着对服务、数据访问/持久层(DAO)的增加, 并不适合这样频繁的执行上述的步骤,无法发挥出自身框架带来的优势, ODBC/PDO也必须将连接对象重复的存储到硬盘,再载入到内存,周而复始。
抛弃传统的CGI模式,让PHP变成可编程脚本,将启动时所需要的容器一次载入,创建[http]对象,(真的,真的没找到高性能的http框架,request都没有) 载入连接,将http头补丁到PHP的全局变量,再用Symfony/Laravel对请求进行拍照,最后再执行框架(容器和切面已经预热好)
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.
If you don't feel like reading, Laracasts can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.
- Vehikl
- Tighten Co.
- Kirschbaum Development Group
- 64 Robots
- Cubet Techno Labs
- Cyber-Duck
- Many
- Webdock, Fast VPS Hosting
- DevSquad
- Curotec
- OP.GG
- WebReinvent
- Lendio
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.