Home >PHP Framework >Swoole >swoole framework installation steps
Swoole Framework
PHP web server&application server developed based on Swoole extension, built-in framework. (Recommended learning: swoole video tutorial)
Provides rich functional features such as unified registration tree, database operations, templates, Cache, logs, queues, upload management, and user management.
Compared with apache/fpm, the swoole framework mainly saves the performance loss caused by the creation and destruction of each request of the PHP framework and global objects. If your PHP code is in naked echo mode, the swoole framework has no performance advantage.
The swoole framework provides programmers with the greatest space, and global objects unrelated to http requests only need to be constructed once. Cache control of certain objects and data can also be performed in the program.
Go to the GitHub homepage to download the Swoole extension source code, address: https://github.com/swoole/swoole-src. After downloading, compile and install according to the standard PHP extension compilation method. Usually
phpize ./configure make install
After compilation and installation, modify php.ini and add extension=swoole.so to enable the swoole extension. It can also be loaded dynamically through dl('swoole.so'). It is recommended to modify php.ini.
Download the swoole_framework source code, address: https://github.com/swoole/framework. Just place it in your workspace directory.
swoole_framework is PHP code, you only need to require/include, no compilation and installation are required.
The above is the detailed content of swoole framework installation steps. For more information, please follow other related articles on the PHP Chinese website!