Giter VIP home page Giter VIP logo

busfactor's Introduction

BusFactor

Latest Version Software License

BusFactor is a modern PHP library providing several components you can mix and match to implement the CQRS and Event Sourcing patterns in your application.

Install

Using Composer:

$ composer require busfactor/busfactor

Requirements

  • PHP >=7.3 with json and pdo extensions enabled.

Components

Component Description
Aggregate Interfaces and traits for plain DDD aggregates and domain events.
AggregateStore Persistence for aggregates.
CacheProjectionStoreMiddleware Caching middleware for ProjectionStore.
CommandBus Implementation of the Command Bus pattern.
EventBus Implementation of the Publish-Subscribe pattern for event streams.
EventSourcedAggregate Interface and trait for event-sourced aggregates.
EventSourcedAggregateStore AggregateStore adapter for event-sourced aggregates persistence.
EventStore Persistence for event streams.
EventStoreReductionInspection Output single value from EventStore inspection.
EventStream Event streams for event-sourced aggregates.
LaravelCacheProjectionStore Laravel Cache adapter for ProjectionStore.
MemcachedProjectionStore Memcached adapter for ProjectionStore.
ObjectSerializer Interface for object serialization.
Pdo Decorating interface for PHP Data Objects (PDO).
PdoAggregateStore PDO adapter for AggregateStore.
PdoEventStore PDO adapter for EventStore.
PdoProjectionStore PDO adapter for ProjectionStore.
PdoProxy Lazy-connecting PDO proxy.
Problem Interface for Problem Details aware exceptions.
Projection Interface for projections.
ProjectionStore Persistence for projections.
ReflectionObjectSerializer Reflection-based adapter for ObjectSerializer.
Scenario Testing infrastructure on top of PHPUnit.
SnapshotAggregateStoreMiddleware AggregateStore middleware for event-sourced aggregate snapshots.
StreamEnricher Interface for event stream enrichers.
StreamEnricherEventBusMiddleware EventBus middleware for event stream enrichment with StreamEnricher.
StreamEnricherEventStoreMiddleware EventStore middleware for event stream enrichment with StreamEnricher`.
StreamPublishingInspection Publish event streams from EventStore inspection.
Uuid Universally Unique IDentifier (UUID) generation.

Testing

$ vendor/bin/phpunit

Credits

License

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

busfactor's People

Contributors

maximegosselin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

busfactor's Issues

Examples / Documentation

As intuitive and well-named classes are, there is no documentation or example provided.

Can you provide some examples using these classes/interfaces?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.