PHP code example of jie-anthony / laravel-octane-workerman
1. Go to this page and download the library: Download jie-anthony/laravel-octane-workerman 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/ */
jie-anthony / laravel-octane-workerman example snippets
shell
php artisan vendor:publish --provider="Laravel\Octane\OctaneServiceProvider"
php artisan vendor:publish --provider="JieAnthony\LaravelOctaneWorkerman\WorkermanGatewayWorkerServiceProvider"
shell
php artisan worker start
php artisan worker daemon
php artisan worker reload
php artisan worker stop
php artisan worker status -d
php artisan make:sockets Sockets
php artisan make:events Events
php artisan make:process CustomProcess
location /ws {
# the websocket address with http protocol
proxy_pass http://127.0.0.1:7200;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'Upgrade';
}