There are several open source libraries built for Laravel and Swoole integration: Laravel Swoole, Laravel-S.
https://github.com/swooletw/laravel-swoole
composer require swooletw/laravel-swoole
<?php
[
'providers' => [
SwooleTW\Http\LaravelServiceProvider::class,
],
]
php artisan vendor:publish --tag=laravel-swoole
php artisan swoole:http {start|stop|restart|reload|infos}
https://github.com/hhxsv5/laravel-s
composer require "hhxsv5/laravel-s:~3.0" -vvv
<?php
[
'providers' => [
Hhxsv5\LaravelS\Illuminate\LaravelSServiceProvider::class,
],
]
php artisan laravels publish
Then update the default LaravelS configurations.
php artisan laravels {start|stop|restart|reload}
Join 4,000+ others and never miss out on new tips, tutorials, and more.