PHP code example of jundayw / laravel-swoole-server

1. Go to this page and download the library: Download jundayw/laravel-swoole-server library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jundayw / laravel-swoole-server example snippets


php artisan vendor:publish --tag=swoole-config

php artisan swoole {name} {--action=start|stop|reload|restart|infos}

php artisan swoole default --action=start

php artisan swoole default --action=stop

php artisan swoole default --action=reload

php artisan swoole default --action=restart

php artisan swoole default --action=infos