Domain Event
, (*1)
A library for using domain events., (*2)
Installation
$ composer require krixon/domain-event
, (*3)
Development
Build Image and Run Container
Note: If your host machine's user does not have an ID of 1000, run the following command from the project root
directory:, (*4)
echo "DEV_UID=$(id -u)" > .env
This ensures that any files created in mounted directories have the correct permissions. It will also cause the host
user's SSH keys and Composer cache to be used inside the container., (*5)
Build image:, (*6)
$ docker-compose build
, (*7)
Install dependencies:, (*8)
$ docker-compose run --rm library composer install
, (*9)
Run the tests
$ docker-compose run --rm library composer test
, (*10)
Coding Standard
This library uses a customised version of the Doctrine coding standard that must be followed at all times. If you're
using PHPStorm you can make this easier by enabling the Code Sniffer inspection:, (*11)
Navigate to Settings > Editor > Inspections
and select PHP > Quality Tools > PHP Code Sniffer validation
from the list.
Enable the inspection.
Set the severity to ERROR
and check the show warning as checkbox with the option WEAK WARNING
.
Select the coding standard Custom and point the rule set path to the phpcs.xml.dist
file at the root of the project., (*12)
To check conformance use:, (*13)
$ docker-compose run --rm library composer cs
, (*14)
Testing
$ docker-compose run --rm library composer test
, (*15)
Change log
All notable changes are recorded in CHANGELOG., (*16)