Install PHP swoole extension and install Laravel, do not describe the
Integration Laravel and swoole with this wheel, intrusive very small, a line of code to fix, recommend, today just use, can not predict whether the future will meet the pit
Https://github.com/swooletw/laravel-swoole
The document also speaks relatively clearly
After installation, with the AB software for the two modes of the simple pressure measurement (the machine opened too many things, ignoring the specific indicators, only to do the contrast, found that swoole take over PHP-FPM mode will improve the performance of a large section, one after the non-simultaneous operation)
/* Picture too little open the picture in a new tab */
Try the development debugging again
Two debug modes are configured (PHP Script and PHP Web Page mode)
PHP Script mode is configured as follows, relatively concise, only need to configure two places
PHP Web Page Mode relative configuration more
You're ready to start debugging.
First, start PHP in PHP-FPM mode, and open the right phone icon to turn on monitoring
When the http://127.0.0.1:3456/test is accessed in the browser, the page is blocked, and the breakpoint is triggered, the wake-up console
Second, start the service in CLI command line mode, turn on debugging, and start the service
When the http://127.0.0.1:1215/test is accessed in the browser, the page is blocked, and the breakpoint is triggered, the wake-up console
Laravel integrates Swoole and simple AB test comparison performance and PHP code in phpstorm with debug Debug Configuration Swoole Service