dev-master
9999999-devA library for sending AMQP messages to queues or exchanges with Laravel/Lumen
MIT
The Requires
The Development Requires
laravel lumen rabbitmq laravel 5 l5 amqp amqp queue amqp exchange amqp message
Wallogit.com
2017 © Pedro Peláez
A library for sending AMQP messages to queues or exchanges with Laravel/Lumen
You can install this package via composer using this command:, (*1)
composer require krenor/skippy, (*2)
// config/app.php
'providers' => [
...
Skippy\Providers\SkippyServiceProvider::class,
]
php artisan vendor:publish --provider="Skippy\Providers\SkippyServiceProvider", (*3)
// config/app.php
'aliases' => [
...
'Skippy' => Skippy\Facades\Skippy::class,
],
// bootstrap/app.php $app->register(Skippy\Providers\SkippyServiceProvider::class);
You can copy the content of the base configuration file and adjust it to your needs., (*4)
// bootstrap/app.php
$app->configure('skippy');
// bootstrap/app.php class_alias(Skippy\Skippy::class, 'Skippy');
$profile = $this->createMagicalProfile();
$message = [
'id' => Uuid::generate(4)->string,
'cids' => [
Uuid::generate(4)->string,
],
'type' => 'new-magical-profile',
'version' => '1.0.0',
'body' => $profile,
];
Skippy::send($message)->publish('magical-profile-created');
PSR-2 Coding Standard, (*5)
Document any changes - Make sure the README.md and any other relevant documentation are kept up-to-date., (*6)
Create feature branches - Use git checkout -b my-new-feature, (*7)
One pull request per feature - If you want to do more than one thing, send multiple pull requests., (*8)
Send coherent history - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting., (*9)
skippy is distributed under the terms of the MIT license, (*10)
A library for sending AMQP messages to queues or exchanges with Laravel/Lumen
MIT
laravel lumen rabbitmq laravel 5 l5 amqp amqp queue amqp exchange amqp message