Joan Miquel 93df532ba3 Fix larvel-s to not use JIT (#6314) 4 years ago
..
app de11533c7c Add laravel-s bechmark for laravel/lumen (#6216) 4 years ago
bootstrap bd4dbe46e6 More cleanup (#3493) 7 years ago
config c2ecb8b84a [Laravel][Lumen] Update to v8 (#6098) 4 years ago
database bd4dbe46e6 More cleanup (#3493) 7 years ago
deploy de11533c7c Add laravel-s bechmark for laravel/lumen (#6216) 4 years ago
public fb56253d14 [Laravel][Lumen] Fix swoole pbs (#6095) 4 years ago
resources 953d8c197f More docker php ports (#3459) 7 years ago
routes 6326196717 Upgrade PHP Laravel framework (#3384) 7 years ago
.env cc61ef5d58 PHP/* Remove TE base dependencies (#3535) 7 years ago
README.md de11533c7c Add laravel-s bechmark for laravel/lumen (#6216) 4 years ago
artisan 6326196717 Upgrade PHP Laravel framework (#3384) 7 years ago
benchmark_config.json de11533c7c Add laravel-s bechmark for laravel/lumen (#6216) 4 years ago
composer.json 3f6e0cad7a [laravel] Update to PHP 8 (#6181) 4 years ago
config.toml 0096f84ee9 Config for the new toolset (#6259) 4 years ago
laravel-laravel-s.dockerfile 93df532ba3 Fix larvel-s to not use JIT (#6314) 4 years ago
laravel-swoole.dockerfile 0096f84ee9 Config for the new toolset (#6259) 4 years ago
laravel.dockerfile 93df532ba3 Fix larvel-s to not use JIT (#6314) 4 years ago
package.json 6326196717 Upgrade PHP Laravel framework (#3384) 7 years ago
server.php 6326196717 Upgrade PHP Laravel framework (#3384) 7 years ago
webpack.mix.js 6326196717 Upgrade PHP Laravel framework (#3384) 7 years ago

README.md

Build Status Total Downloads Latest Stable Version License

About 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 attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:

Laravel is accessible, yet powerful, providing tools needed for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.

If you're not in the mood to read, Laracasts contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page:

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Security Vulnerabilities

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.

License

The Laravel framework is open-sourced software licensed under the MIT license.

laravel-swoole Benchmarking Test

The laravel-swoole test is a benchmark test of Laravel running on Swoole.

Swoole is an asynchronous PHP webserver that runs as a PECL extension to PHP.

Traditional PHP servers use php-fpm to run PHP software. On each request, php-fpm initializes a new instance of the php framework, processes the request, returns the response, and terminates the php framework.
This results in decreased performance relative to other technologies like Java or node.js based frameworks which intialize only once and then process multiple requests without terminating in between.

Swoole provides this capability to PHP. When Swoole starts, it initializes the framework once and handles requests without terminating the framework between requests. Also, like nginx, netty, node.js, Swoole is an asynchronous event-loop based server.

Laravel-swoole is an adapter layer between Swoole and Laravel/Lumen. It provides facades for http requests and PDO database connections. It launches Laravel worker instances for each cpu core to handle incoming requests.

Also because Laravel was written under php-fpm environment where the framework is reset between each request, sometimes state changes are not re-initialized between requests since it isn't necessary in an environment where the framework is terminated after each request. To handle this, Laravel-swoole creates a sandbox for each request with a copy of initial framework state so that any changes made by the request do not impact the state of other incoming requests.

Brion Finlay 10/3/2018

Test Type Implementation Source Code

Important Libraries

The tests were run with:

Test URLs

JSON

http://localhost:8080/json

PLAINTEXT

http://localhost:8080/plaintext

DB

http://localhost:8080/db

QUERY

http://localhost:8080/queries/[count]

UPDATE

http://localhost:8080/updates/[count]

FORTUNES

http://localhost:8080/fortunes

Add laravel-s Benchmarking Test

laravel-s is an out-of-the-box adapter between Swoole and Laravel/Lumen, similar to laravel-swoole.