sonrac / laravel-wamp by sonrac

WAMP protocol implementation for laravel & lumen
173
3
2
Package Data
Maintainer Username: sonrac
Maintainer Contact: doniysa@gmail.com (Donii Sergii)
Package Create Date: 2017-10-23
Package Last Update: 2022-12-09
Language: PHP
License: MIT
Last Refreshed: 2025-01-23 15:11:29
Package Statistics
Total Downloads: 173
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 3
Total Watchers: 2
Total Forks: 0
Total Open Issues: 8

Scrutinizer Code Quality StyleCI Code Coverage Build Status codecov VersionEYE License Total Downloads Monthly Downloads Daily Downloads composer.lock Build Status Dependency Status

SensioLabsInsight

pipeline status coverage report

Wamp server for lumen/laravel

In demelopment state yet

Install

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',

Add subscriber:

app()->wampRouter->addSubscriber('com2.hello', function ($clientSession, $client) {
    return 123;
});

Add procedure:

app()->wampRouter->addRoute('com1.hello', function ($clientSession, $client) {
    return 123;
})

Start server:

Usage help for get options help

php artisan wamp:run-server

This command let start server with registering predefined routes with client

Register routes:

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',

Add subscriber:

app()->wampRouter->addSubscriber('com2.hello', function ($clientSession, $client) {
    return 123;
});

Add procedure:

app()->wampRouter->addRoute('com1.hello', function ($clientSession, $client) {
    return 123;
})

Start server:

Usage help for get options help

php artisan wamp:run-server

This command let start server with registering predefined routes with client

Register routes:

Usage help for get options help

php artisan register-routes

Run tests

Test running for laravel & lumen both from script run-tests.sh

Run command:

sh run-tests.sh