phpinnacle/pinnacle

PHPinnacle Framework

dev-master / 1.0.x-dev 2018-12-28 13:05 UTC

This package is auto-updated.

Last update: 2024-04-15 04:57:43 UTC


README

Latest Version on Packagist Software License Coverage Status Quality Score Total Downloads

PHPinnacle provides full featured stack for message based applications with support CQRS and Event Sourcing.

Install

Via Composer

$ composer require phpinnacle/pinnacle

Basic Usage

<?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.

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email dev@phpinnacle.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.