xaraya/with-symfony

There is no license information available for the latest version (0.6.0) of this package.

Integrate Xaraya with Symfony applications

This package is auto-updated.

Last update: 2024-11-03 20:22:26 UTC


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:

  1. src/Webhook/: hello-symfony request parser
  2. src/RemoteEvent/: hello-symfony webhook consumer
  3. 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!