PHPackages                             digitalstate/platform-transport-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. digitalstate/platform-transport-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

digitalstate/platform-transport-bundle
======================================

DigitalState Transport Bundle

0.3.0(9y ago)01522[1 PRs](https://github.com/DigitalState/Platform-Transport-Bundle/pulls)2MITPHPPHP &gt;=5.6

Since Jan 13Pushed 9y ago3 watchersCompare

[ Source](https://github.com/DigitalState/Platform-Transport-Bundle)[ Packagist](https://packagist.org/packages/digitalstate/platform-transport-bundle)[ Docs](https://github.com/DigitalState/Platform-Transport-Bundle.git)[ RSS](/packages/digitalstate-platform-transport-bundle/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelogDependencies (7)Versions (7)Used By (2)

Platform-Transport-Bundle
=========================

[](#platform-transport-bundle)

The Transport bundle provides the developers the foundation and common API for sending messages programmatically. It introduces two new entities to the system: [Transport](Entity/Transport.php) and [Profile](Entity/Profile.php).

[![Code Climate](https://camo.githubusercontent.com/b1cd66f13d5d43ee634013bb196c275e028b34ad3d6f87a6a78c032d31c221ee/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4469676974616c53746174652f506c6174666f726d2d5472616e73706f72742d42756e646c652f6261646765732f6770612e737667)](https://codeclimate.com/github/DigitalState/Platform-Transport-Bundle)[![Test Coverage](https://camo.githubusercontent.com/11a4da892994d39f6e738fa5ebe9353c9efbf73f2d61291f27211339e53f31e1/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4469676974616c53746174652f506c6174666f726d2d5472616e73706f72742d42756e646c652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/DigitalState/Platform-Transport-Bundle/coverage)

Table of Contents
-----------------

[](#table-of-contents)

- [Transport Entity](#transport-entity)
- [Profile Entity](#profile-entity)
- [Todo](#todo)

Transport Entity
----------------

[](#transport-entity)

Transports are in charge of sending messages to recipients. For example, the developer could define a Transport that knows how to send messages via Twilio SMS.

Internally, each Transport is associated with a PHP class. To create a Transport class, the developer needs to implement the [Transport Interface](Transport/Transport.php).

**Example** `src/Gov/Bundle/DemoBundle/Transport/Sms/TwilioTransport.php`:

```
