library notification
Notification Abstract Layer
arabcoders/notification
Notification Abstract Layer
- Sunday, June 26, 2016
- by arabcoders
- Repository
- 1 Watchers
- 0 Stars
- 15 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Notification Manger
A Base Notification Manager that abstract away all the providers differences under common Interface., (*1)
Install
Via Composer, (*2)
$ composer require arabcoders/notification
Usage Example.
<?php
require __DIR__ . '/../../autoload.php';
$provider = new \arabcoders\notification\Providers\PushOver();
$provider->setKey('key');
$notification = new arabcoders\notification\Notification( $provider );
$notification->setTokens( [ 'token here' ] )
->setTitle( 'title' )
->setMessage( 'message' )
->send();