common-gateway/first-test-bundle
An example repository for creating php symfony flex bundles
hoi
U can install this plugin by installing with command:
composer require common-gateway/pet-store-plugin:dev-main
in the directory where your composer.json lives.
To create your own symfony bundle. You can copy this repository for a fast start.
Create repository from templateBefore we can use our bundle and code, we must have it online on packagist so we can install with composer.
submit in the top menu bar and paste your bundle's github repository link, the name from you composer.json will be used as package name.SubmitShow API Token and copyAdd webhookJust push the eventAdd webhookTo use the code in your library we first have to install it with composer.
Note: for docker add docker-compose exec php before all comands
composer require {full package name}:dev-mainuse CommonGateway\FirstTestBundle\Service\FirstBundleService;)In the common gateway, if you want to use your code when triggered by an event with a action, make sure the class of the action object is set as the handler name including the namespace. For example if I want to use the FirstBundleService I can set the FirstBundleHandler as CommonGateway\FirstTestBundle\ActionHandler\FirstBundleHandler.
How can I help you explore Laravel packages today?