• Official release of Swoft 2.0.6


    What is soft? Swoft is a PHP microservice collaboration framework based on swoole extension. Like go, swoft has built-in co process network server and common co process clients, which are memory resident and do not rely on traditional php-fpm. There are cooperative operation modes similar to go language, flexible annotation similar to spring cloud framework, […]

  • Thinkphp5.0 framework combined with swoole development to realize websocket online chat case explanation


    In this paper, an example is given to illustrate the implementation of websocket online chat case based on thinkphp5.0 framework and swoole. To share with you for your reference, as follows: To use swoole in ThinkPHP, you need to install the think swoole composer package, provided that the system has installed the swoole PECL extension […]

  • Detailed explanation of swoole’s task case of asynchronous delivery


    An example of this paper describes the implementation of asynchronous delivery task in swoole. To share with you for your reference, as follows: [usage scenario] Swoolle’s task module can be used to do some asynchronous slow tasks and time-consuming scenarios. For example, webim sends broadcast and email. After these tasks are left to the task […]

  • Example of implementing real-time asynchronous task queue with PHP extended swoole


    The example of this paper describes how to extend swoole in PHP to realize real-time asynchronous task queue. To share with you for your reference, as follows: If want to send 100 mail, for circulates 100 times, the user rises directly, what break a website! But in fact, we are likely to have more than […]

  • PHP process: go + Chan + defer


    Swoole4byPHPLanguage provides powerfulCSPCo programming mode. The bottom layer provides3Key words, can easily achieve all kinds of functions. Swoole4ProvidedPHP AssociationGrammar fromGolangIn this directionGODevelopment team Tribute PHP+SwooleThe process can work withGolangWell complemented.GolangStatic language, rigorous and powerful, with good performance,PHP+Swoole: dynamic language, flexible and easy to use This article is based onSwoole-4.2.9andPHP-7.2.9Edition Key word go: create a process […]

  • Using docker / docker compose to deploy software applications


    Swoft The first high-performance PHP full stack framework based on swoole native orchestration in the new era, built-in orchestration network server and commonly used orchestration client, resident in memory, independent of traditional php-fpm, fully asynchronous non blocking IO implementation, similar to synchronous client writing to achieve asynchronous client use, no complex asynchronous callback, no tedious […]

  • Using swoole for system monitoring


    In general, we need to monitor a certain service of the server to make sure that the service is running normally. In general, we can use Linux to plan tasks, but the minimum execution time interval of the planned tasks is seconds, which often can not meet our requirements. At this time, the MS timer […]

  • Light PHP high performance PHP framework based on swoole


    🚀Light-phpIt is a high-performance PHP framework based on swoole, with lightweight encapsulation and ease of use, which makes it perform well in small and medium-sized high-performance projects. directory Environmental requirements Installation tutorial configuration file Route middleware Controller hook Task task WebSocket data base Pressure test Environmental requirements rely on Explain PHP >= 7.2 Recommendation 7.2 […]

  • Problems caused by installing swoole in multiple versions of PHP


    problem First of all, on your computer, Ubuntu has installed many versions of PHP. Second, after your PHP reference is changed, there are many problems that cause multiple versions of extensions to coexistThat is to say, in my place/etc/php/7.1/cliDirectory Then in/usr/lib/phpThe directory will look like this: Use in this casepeclInstallation will occur Module compiled with […]

  • A simple memory resident framework based on swoole


    background In uselaravelFramework, find itRouteandDatabase ORMIt’s really very easy to use, but it’s a bit slow overall. It takes about 60ms to execute the controller. So I plan to make a very simple framework with very easy to use routing and orm. So you ‘ll find the one boxRouteandORMThere’s a shadow of laravel. But it […]

  • Mental burden of programming language


    Many programming language comparison articles always like to compare the performance, syntax and IO model of various programming languages. This article will compare different programming languages and technologies from the perspective of mental burden. Because I am good at programming language limited, if there is something wrong, welcome to correct. Out of memory For example: […]

  • An asynchronous mqtt client library based on swoole, which can be used to receive or send messages of mqtt protocol


    An asynchronous mqtt client library based on swoole can be used to receive or send messages of mqtt protocol. Support QoS 0, QoS 1 and QoS 2. Mqtt version 3.1 and 3.1.1 are supported install composer require try-to/swoole_mqtt Example subscribe.php <?php use TrytoMqtt\Client; require_once __DIR__ . ‘/vendor/autoload.php’; $options = [ ‘clean_session’ => false, ‘client_id’ => […]