sonrac/wamp-server

WAMP protocol implementation for laravel & lumen
174 3
Install
composer require sonrac/wamp-server
Latest Version:0.1.7
Laravel:5
License:MIT
Last Updated:Dec 9, 2022
Links: GitHub  ·  Packagist
Maintainer: sonrac

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

Related Packages

vinelab/minion

A Simple WAMP (Web Application Messaging Protocol) server and command line tool

6,773 126
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609

Version History

Version Released Laravel License
0.1.7 5.* MIT
0.1.6 5.* MIT
0.1.5 5.* MIT
0.1.4 5.* MIT
0.1.3 5.* MIT