phariscope / event-store
To develop event stores this package is start base.
1.1.1
2024-03-04 16:00 UTC
Requires
- php: >=8.1
- phariscope/event: ^1.1
- symfony/serializer: ^6.0 || ^7.0
Requires (Dev)
- infection/extension-installer: 0.1.2
- infection/infection: ^0.27
- phpstan/phpdoc-parser: ^1.20
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10
- squizlabs/php_codesniffer: 3.*
README
composer require phariscope/event-store
Usage
There is no direct usage for this package. You should use this package only if you want to develop your own event storage component.
To develop your own storage:
- Create your own Store implementing the StoreInterface.
- Create your subscriber by extending PersistEventSubscriberAbstract, which can be constructed with your store.
A sample of the StoreInterface is provided with StoreEventInMemory. You can use it for testing purposes.
To Contribut to pharsicope/Event
Requirements
- docker
- git
Install
- git clone git@github.com:phariscope/EventStore.git
Unit test
bin/phpunit
Using Test-Driven Development (TDD) principles (thanks to Kent Beck and others), following good practices (thanks to Uncle Bob and others) and the great book 'DDD in PHP' by C. Buenosvinos, C. Soronellas, K. Akbary
Quality
- phpcs PSR12
- phpstan level 9
- coverage 100%
- infection MSI 100%
Quick check with:
./codecheck
Check coverage with:
bin/phpunit --coverage-html var
and view 'var/index.html' with your browser
Check infection with:
bin/infection
and view 'var/infection.html' with your browser