pushinbr / nimbus-notifications-webhook
Signed webhook notification channel for Nimbus notifications.
Package info
github.com/push-in/nimbus-notifications-webhook
pkg:composer/pushinbr/nimbus-notifications-webhook
Requires
- php: ^8.4
- pushinbr/nimbus: ^0.8
Requires (Dev)
- phpunit/phpunit: ^11.5
Suggests
- psr/http-client: Send webhooks through any PSR-18 client (Psr18HttpClient of the core).
Provides
None
Conflicts
None
Replaces
None
README
Signed webhook notification channel for Nimbus notifications.
Up to Nimbus 0.7 this code was part of pushinbr/nimbus. From 0.8 the core keeps
only the base framework and the extension points; the webhook notification channel support lives
here, with the same namespaces, so an application only adds the package.
Start here
Install PAM first (curl -fsSL https://push-in.github.io/pam/install.sh | sh), then
add the package to a Nimbus application:
pam composer require pushinbr/nimbus-notifications-webhook
$sender = new NotificationSender(['webhook' => new WebhookChannel((string) getenv('WEBHOOK_SECRET'))]);
Documentation: docs/nimbus/notificacoes.md.
Development
The package is developed in the push-in/pam
monorepo (packages/nimbus-notifications-webhook); push-in/nimbus-notifications-webhook is a read-only split. Its
tests share the runtime stubs and fixtures of packages/nimbus/tests:
cd packages/nimbus-notifications-webhook composer config repositories.monorepo '{"type": "path", "url": "../*", "options": {"symlink": true}}' composer update && composer test
License
Apache-2.0. See LICENSE.