teamsquad.io / php-event-bus
A basic PHP EventBus Library
Installs: 5 572
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 3
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 || ^0.19.0
- symfony/var-dumper: ^5.4
- vimeo/psalm: ^4.22 || ^5.0
- dev-master
- v2.4.1
- v2.4.0
- 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/phpstan/phpstan-2.0.2
- dev-dependabot/composer/phpstan/phpstan-1.12.9
- dev-dependabot/composer/tools/php-cs-fixer/symfony/process-5.4.46
- dev-dependabot/composer/vimeo/psalm-5.26.1
- dev-fixes
This package is auto-updated.
Last update: 2024-11-18 00:33:02 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.