okorneliuk / symfony-websms-notifier
Symfony WebSms Notifier Bridge
Installs: 810
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bridge
Requires
- php: >=7.2.5
- ext-iconv: *
- symfony/http-client: ^4.4|^5.2|^6.0|^7.0
- symfony/notifier: ^5.2|^6.0|^7.0
Requires (Dev)
- symfony/phpunit-bridge: ^5.2|^6.0|^7.0
README
Provides WebSms integration for Symfony Notifier.
DSN example
WEBSMS_DSN=websms://CLIENT_ID:API_KEY@default?test_mode=TEST_MODE
where:
CLIENT_ID
is your emailAPI_KEY
is your WebSms passwordTEST_MODE
(Optional) the test parameter is used during system connection testing. Possible values: 0 (real SMS sent), 1 (test SMS, will not be delivered to the phone and will not be charged)
Then add a service:
# app/config/notifier.yml services: notifier.transport_factory.websms: class: 'Okorneliuk\Symfony\NotifierBridge\WebSms\WebSmsTransportFactory' parent: 'notifier.transport_factory.abstract' tags: ['texter.transport_factory']