surfnet / messagebird-api-client-bundle
A Symfony 3 & 4 bundle to integrate MessageBird's messaging service.
Installs: 16 507
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 10
Forks: 4
Open Issues: 1
Requires
- php: >=8.2
- guzzlehttp/guzzle: ^7.0
- symfony/config: ^5.0 || ^6.0 || ^7.0
- symfony/console: ^5.0 || ^6.0 || ^7.0
- symfony/dependency-injection: ^5.0 || ^6.0 || ^7.0
- symfony/event-dispatcher: ^5.0 || ^6.0 || ^7.0
- symfony/http-kernel: ^5.0 || ^6.0 || ^7.0
Requires (Dev)
- matthiasnoback/symfony-config-test: ^4.3 || ^5.0
- phpmd/phpmd: ^2.6
- phpunit/phpunit: ^9.6
- sensiolabs/security-checker: ^v6.0.3
- squizlabs/php_codesniffer: ^3.0
- symfony/phpunit-bridge: ^5.0 || ^6.0 || ^7.0
This package is auto-updated.
Last update: 2024-05-03 17:02:35 UTC
README
A Symfony 3 bundle (with Symfony 4 support) to integrate MessageBird's messaging service.
End of life warning
We've decided to stop maintaining this bundle because we're moving to Spryng. Contact us if you are interested in taking over maintenance of this bundle.
Installation
-
Add the package to your Composer file
composer require surfnet/messagebird-api-client-bundle
-
Add the bundle to your kernel in
app/AppKernel.php
public function registerBundles() { // ... $bundles[] = new Surfnet\MessageBirdApiClientBundle\SurfnetMessageBirdApiClientBundle; }
-
Configure your MessageBird access key
surfnet_message_bird_api_client: authorization: 'AccessKey test_xxxxxxxxx'
Usage
Sending a message
public function fooAction() { $message = new \Surfnet\MessageBirdApiClient\Messaging\Message( 'SURFnet', '31612345678', 'Your one-time SMS security token: 9832' ); /** @var \Surfnet\MessageBirdApiClientBundle\Service\MessagingService $messaging */ $messaging = $this->get('surfnet_message_bird_api_client.messaging'); $result = $messaging->send($message); if ($result->isSuccess()) { // Message has been buffered, sent or delivered. } }
Release strategy
Please read: https://github.com/OpenConext/Stepup-Deploy/wiki/Release-Management for more information on the release strategy used in Stepup projects.