Home > Article > PHP Framework > Is swoole open source?
#Swoole is open source and free software, and the licensing agreement is Apache2.0. Both corporate and individual developers can use Swoole's code for free, and modifications made on Swoole can be used in commercial products without open source (note: the copyright statement of the original author must be retained).
Swoole is written in pure C language and provides asynchronous multi-threaded server in PHP language, asynchronous TCP/UDP network client, asynchronous MySQL, asynchronous Redis, database connection pool, AsyncTask, message queue, milliseconds Timer, asynchronous file reading and writing, asynchronous DNS query. Swoole has built-in Http/WebSocket server/client and Http2.0 server.
In addition to the support of asynchronous IO, Swoole has designed multiple concurrent data structures and IPC communication mechanisms for PHP multi-process mode, which can greatly simplify the work of multi-process concurrent programming. It includes concurrent atomic counters, concurrent HashTable, Channel, Lock, inter-process communication IPC and other rich functional features.
Swoole2.0 supports Go language-like coroutines, which can use fully synchronous code to implement asynchronous programs. There is no need to add any additional keywords to the PHP code. The bottom layer automatically performs coroutine scheduling to achieve asynchronous implementation.
Recommended learning: swoole video tutorial
The above is the detailed content of Is swoole open source?. For more information, please follow other related articles on the PHP Chinese website!