PHPinnacle provides full featured stack for message based applications with support CQRS and Event Sourcing.
Via Composer
$ composer require phpinnacle/pinnacle
<?php
use Amp\Loop;
use PHPinnacle\Pinnacle\ApplicationBuilder;
use PHPinnacle\Pinnacle\Loader;
require __DIR__ . '/vendor/autoload.php';
$builder = new ApplicationBuilder('myapp');
$builder
->transport('amqp://localhost:5672')
->container($psrContainer)
->logger($psrLogger)
->load(new Loader\ServiceLoader('Acme\\Demo\\Services'))
;
Loop::run(function () use ($builder) {
$app = $builder->build();
yield $app->run();
});
More examples can be found in examples
directory.
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.