Download the PHP package yousign/zdd-message-bundle without Composer
On this page you can find all versions of the php package yousign/zdd-message-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package zdd-message-bundle
Zero Downtime Deployment Message Bundle ✉️ ✅
A Symfony Bundle to use when you want to assert that messages used with Message brokers such like RabbitMQ are compliant with the Zero Downtime Deployment.
Getting started
Installation
You can easily install Zdd Message bundle by composer
Then, bundle should be registered. Just verify that config\bundles.php
is containing :
Configuration
Once the bundle is installed, you should create a class to configure the messages to assert and how to create them:
When the class is created, you can register it as a service.
Then, you should register it in the configuration (config/packages/zdd_message.yaml
) :
Optional configuration
Use a custom serializer
Option to use different serializer. Possible options :
Yousign\ZddMessageBundle\Serializer\ZddMessageMessengerSerializer
(default, already configured for messenger serialization in messenger.yaml)- Define your own serializer
- Create a service that implement
Yousign\ZddMessageBundle\Serializer\SerializerInterface
- Use it in the configuration
- Create a service that implement
Detect messages not tracked
Option to write a log message if an asynchronous message has been sent (using symfony messenger) and is not present in your configuration.
Usage
The bundle comes with commands to assert that your messages are compliant with the Zero Downtime Deployment:
💡 You should run bin/console yousign:zdd-message:generate
with the production version code and bin/console yousign:zdd-message:validate
with the version code you want to merge.
Example from the version you want to merge:
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
After writing your fix/feature, you can run following commands to make sure that everything is still ok.
If you want to use your local fork to develop in your projects, you can use the link command to replace the vendor installation by your local version.
Authors
- Smaine Milianni - ismail1432 - smaine(dot)milianni@gmail(dot)com
- Simon Mutricy - Inkod - ink0d@pm(dot)me