arabcoders / notification
Notification Abstract Layer
v1.0.0
2016-06-26 17:51 UTC
Requires
- php: >=7.0
This package is auto-updated.
Last update: 2024-12-23 07:48:37 UTC
README
A Base Notification Manager that abstract away all the providers differences under common Interface.
Install
Via Composer
$ 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();