furison / page-one-notifier
Symfony Page One sms Notifier Bridge
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bridge
Requires
- php: >= 7.2.5
- symfony/http-client: ^4.3|^5.0|^6.0
- symfony/notifier: ^5.3|^6.3
README
Provides PageOne integration for Symfony Notifier.
DSN example
PAGE_ONE_DSN=page-one://USERNAME:PASSWORD@default?from=FROM
where:
USERNAME
is your API UsernamePASSWORD
is your API passwordFROM
is the sender name
See your account info at https://www.pageone.co.uk/login
Installation
- Clone this repository
- Add the following config in services:
services: Furison\Notifier\PageOne\PageOneTransportFactory: parent: 'notifier.transport_factory.abstract' tags: ['texter.transport_factory']
- Add the following in the
notifier.yaml
file:
framework: notifier: texter_transports: page-one: '%env(PAGE_ONE_DSN)%'
- Add the DSN (as above) to your
.env
file - Use it as described here: https://symfony.com/doc/current/notifier.html#creating-sending-notifications but use
['sms']
as the type - Profit!