PHP code example of arabcoders / notification

1. Go to this page and download the library: Download arabcoders/notification library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

arabcoders / notification example snippets




ider = new \arabcoders\notification\Providers\PushOver();
$provider->setKey('key');

$notification = new arabcoders\notification\Notification( $provider );

$notification->setTokens( [ 'token here' ] )
             ->setTitle( 'title' )
             ->setMessage( 'message' )
             ->send();