Skip to content

PHP push notification class for Android devices.

Notifications You must be signed in to change notification settings

emrahoruc/epush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

epush

Simple PHP class sending notification to Android devices.

Example:

    $epush = new Epush();
    $epush->apiKey('Server Api Key');
    $epush->devices( array('regIdX', 'regIdY', 'regIdZ') ); // or just one device $epush->devices('regIdX');
    
    $epush->title( 'Simple Title' );
    $epush->subTitle( 'Simple Title' );
    $epush->message( 'Simple Message' );
    $epush->tickerText('Simple Ticker Text');
    $epush->vibrate(FALSE);
    $epush->sound(FALSE);
    
    // Open Debug Mode
    // $epush->debugMode(TRUE);
    
    echo $epush->send() ? 'Yepp!' : 'OMG! Why me?';

About

PHP push notification class for Android devices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages