xaraya / with-symfony
Integrate Xaraya with Symfony applications
Installs: 19
Dependents: 1
Suggesters: 2
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:xaraya-module
Requires
- php: >=8.2
- ext-ctype: *
- ext-iconv: *
- doctrine/doctrine-bundle: ^2.12
- doctrine/doctrine-migrations-bundle: ^3.3
- doctrine/orm: ^3.1
- symfony/console: 7.1.*
- symfony/doctrine-messenger: 7.1.*
- symfony/dotenv: 7.1.*
- symfony/flex: ^2
- symfony/framework-bundle: 7.1.*
- symfony/runtime: 7.1.*
- symfony/webhook: 7.1.*
- symfony/yaml: 7.1.*
Requires (Dev)
- symfony/maker-bundle: ^1.58
Conflicts
README
This is a basic Symfony Framework application with a Webhook request parser and matching Remote Event webhook listener
Note: the namespace was changed from App\
to Xaraya\SymfonyApp\
to avoid conflicts on loading with third party frameworks
To handle /webhook/hello-symfony
requests:
- src/Webhook/:
hello-symfony
request parser - src/RemoteEvent/:
hello-symfony
webhook consumer - config/packages/framework.yaml:
hello-symfony
webhook routing
You could use one of the Symfony Mailer or Notifier packages and bundles as consumer, switch to async/queued messages with retries etc.
Adding webhooks
Use Symfony Maker to create new webhooks:
$ bin/console make:webhook github created: src/Webhook/GithubRequestParser.php created: src/RemoteEvent/GithubWebhookConsumer.php updated: config/packages/webhook.yaml Success!