Download the PHP package digitalstate/platform-transport-bundle without Composer
On this page you can find all versions of the php package digitalstate/platform-transport-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digitalstate/platform-transport-bundle
More information about digitalstate/platform-transport-bundle
Files in digitalstate/platform-transport-bundle
Package platform-transport-bundle
Short Description DigitalState Transport Bundle
License MIT
Homepage https://github.com/DigitalState/Platform-Transport-Bundle.git
Informations about the package 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: Profile.
Table of Contents
- Transport Entity
- Profile Entity
- Todo
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.
Example src/Gov/Bundle/DemoBundle/Transport/Sms/TwilioTransport.php
:
A Transport class needs to be registered as a service in the Symfony Service Container and be tagged with the ds.transport
tag.
Example src/Gov/Bundle/DemoBundle/Resources/config/services.yml
:
The implementation
attribute is a string value that identifies programmatically a Transport and should be unique.
Profile Entity
A Profile is associated to a Transport and defines the configurations needed by that Transport. Configurations such as hostname, username, password, api key, secret key, etc. For example, a business user could create a Profile via the administrative interface, associate it with the Twilio Transport and provide the needed configurations such as the Twilio api key and credentials.
It is possible to create multiple Profiles for a single Transport. The business user may eventually choose which Profile to use when sending a specific message. For example, Twilio provides different account credentials based on the different geographic areas you want to send messages from.
Todo
All versions of platform-transport-bundle with dependencies
oro/platform Version 2.0.*
oro/platform-serialised-fields Version 2.0.*
digitalstate/platform-admin-bundle Version ~0.3.0
digitalstate/platform-api-bundle Version ~0.3.0
digitalstate/platform-data-bundle Version ~0.3.0
digitalstate/platform-entity-bundle Version ~0.3.0
digitalstate/platform-widget-bundle Version ~0.3.0