8lines / sylius-notification-plugin-ovh-cloud-adapter
Ovh Cloud adapter for Sylius Notification Plugin
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:sylius-notification-plugin-adapter
Requires
- php: >=8.0
- 8lines/sylius-notification-plugin: ^1.0
- symfony/ovh-cloud-notifier: ^6.0
README
SyliusNotificationPlugin
Ovh Cloud Notification Channel Adapter
Table of Content
Overview
This package is an adapter for the SyliusNotificationPlugin that allows you to send notifications to Ovh Cloud.
Installation
To install the adapter you need to run the following command:
composer require 8lines/slack-notification-plugin-ovh-cloud-adapter
Then configure Ovh Cloud Notifier and add the following variable to your .env
file:
OVHCLOUD_DSN=ovhcloud://APPLICATION_KEY:APPLICATION_SECRET@default?consumer_key=CONSUMER_KEY&service_name=SERVICE_NAME&sender=SENDER&no_stop_clause=NO_STOP_CLAUSE
And finally, add the following configuration to your config/packages/notifier.yaml
file:
framework: notifier: texter_transports: ovhcloud: '%env(OVHCLOUD_DSN)%'
Usage
After the installation, you can use the Ovh Cloud Notification Channel in your application. There are one additional option that you can specify during the notification creation:
phone number from
- the phone number from which the notification will be sent.