This package is abandoned and no longer maintained. No replacement package was suggested.

A Symfony 3 & 4 bundle to integrate MessageBird's messaging service.

4.2.1 2023-08-09 09:31 UTC


Build Status Scrutinizer Code Quality SensioLabs Insight

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.


  • 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

      authorization: 'AccessKey test_xxxxxxxxx'


Sending a message

public function fooAction()
    $message = new \Surfnet\MessageBirdApiClient\Messaging\Message(
        '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: for more information on the release strategy used in Stepup projects.