PHPackages                             cspoo/symfony-sms-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. cspoo/symfony-sms-bundle

ActiveSymfony-bundle

cspoo/symfony-sms-bundle
========================

Symfony SMS bundle

42.4k4[1 PRs](https://github.com/tehplague/symfony-sms-bundle/pulls)PHP

Since Apr 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/tehplague/symfony-sms-bundle)[ Packagist](https://packagist.org/packages/cspoo/symfony-sms-bundle)[ RSS](/packages/cspoo-symfony-sms-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

symfony-sms-bundle
==================

[](#symfony-sms-bundle)

Symfony2 bundle for supporting SMS

Activate the bundle
-------------------

[](#activate-the-bundle)

In your AppKernel:

```
    new cspoo\SmsBundle\cspooSmsBundle(),

```

Example of configuration
------------------------

[](#example-of-configuration)

```
# config.yml
cspoo_sms:
    default_transport: winic
    transports:
        -
            name: winic
            type: winic
            username: foo
            password: bar

```

Usage in controller
-------------------

[](#usage-in-controller)

```
        $smsSender = $this->container->get('sms');
        $sms = $smsSender->createSms($phone, $token);
        $smsSender->sendSms($sms);

```

Adding your own provider
------------------------

[](#adding-your-own-provider)

If you have a provider that needs a username/password you can simply add it by doing these steps

### Create a Transport class

[](#create-a-transport-class)

In the Transport folder add a classe MyOwnTransport.php and put in it

```
