In demelopment state yet
composer require sonrac/wamp-server
or add to your composer.json in section autoload
"sonrac/wamp-server": "0.1.*"
Register service provider:
\sonrac\WAMP\WAMPServiceProvider
Add console commands to you Kernel.php
:
'\sonrac\WAMP\Commands\RunServer',
'\sonrac\WAMP\Commands\RegisterRoutes',
app()->wampRouter->addSubscriber('com2.hello', function ($clientSession, $client) {
return 123;
});
app()->wampRouter->addRoute('com1.hello', function ($clientSession, $client) {
return 123;
})
Usage help for get options help
php artisan wamp:run-server
This command let start server with registering predefined routes with client
Usage help for get options help
php artisan register-routes
Register service provider:
\sonrac\WAMP\WAMPServiceProvider
Add console commands to you Kernel.php
:
'\sonrac\WAMP\Commands\RunServer',
'\sonrac\WAMP\Commands\RegisterRoutes',
app()->wampRouter->addSubscriber('com2.hello', function ($clientSession, $client) {
return 123;
});
app()->wampRouter->addRoute('com1.hello', function ($clientSession, $client) {
return 123;
})
Usage help for get options help
php artisan wamp:run-server
This command let start server with registering predefined routes with client
Usage help for get options help
php artisan register-routes
Test running for laravel & lumen both from script run-tests.sh
Run command:
sh run-tests.sh