arabcoders/notification

Notification Abstract Layer

v1.0.0 2016-06-26 17:51 UTC

This package is auto-updated.

Last update: 2024-04-23 06:33:51 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();