teamsquad.io / php-event-bus
A basic PHP EventBus Library
Installs: 3 898
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 1
Requires
- php: >=7.4
- ext-json: *
- doctrine/annotations: ^1.14.2 || ^2.0.0
- php-amqplib/php-amqplib: ^3.2.0
Requires (Dev)
- phpstan/phpstan: ^1.5
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.17.0 || ^0.18.0
- symfony/var-dumper: ^5.4
- vimeo/psalm: ^4.22
- dev-master
- v2.3.0
- v2.2.1
- v2.2.0
- v2.1.0
- v2.0.1
- v2.0.0
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/composer/php-amqplib/php-amqplib-3.6.2
- dev-dependabot/composer/phpstan/phpstan-1.10.67
- dev-dependabot/composer/symfony/var-dumper-5.4.38
- dev-dependabot/composer/phpunit/phpunit-9.6.19
- dev-fix_DEA2009_CommandbusGlobal
This package is auto-updated.
Last update: 2024-04-28 13:16:57 UTC
README
TeamSquad PHP EventBus library package.
This is the TeamSquad PHP EventBus Library. It's used to publish and listen to events.Installation
composer require teamsquad/php-event-bus
Development
Initialization
composer install
Run composer scripts
composer test-all # run test-quality & test-phpunit composer test-quality # run csrun & psalm & phpstan composer test-phpunit # run phpunit composer csrun # check code style composer psalm # run psalm coverage composer phpstan # run phpstan coverage
Git hooks
Install the pre-commit hook running:
./tools/git-hooks/init.sh
Basic Dockerfile
If you don't have PHP in your local machine, you can use docker to build an image with PHP 8.0
.
docker build -t php-event-bus .
Contributing
Feel free to open any PR with your ideas, suggestions or improvements.