Skip to content
/ sapn Public

PHP Class for sending push notification in ios application

License

Notifications You must be signed in to change notification settings

zaachi/sapn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAPN

SIMPLE CLASS TO SEND PUSH IOS NOTIFICATION

HOW TO USE

  • create new instance

    $apns = new SAPN( SAPN::DEVELOPMENT );

  • add certificate

    $apns ->setCertificateFile('/PATH/TO/CERT/CERT.pem');

  • add device token

    $apns ->addDeviceToken('bf447b59acd20718565b763e2de11382a0db1dc17caec4899fefd9790d0422a4');

  • set custom variables

    $apns ->setCustomVariable('referenceId', 382);

  • set badge

    $apns->setBadge(3);

  • set sound

    $apns->setSound('default');

  • set Passphrase

    $apns->setCertificatePassphrase('password');

  • set puhs notificatoin message

    $apns ->setMessage('this is my push message');

  • send message

    $apns ->send();

About

PHP Class for sending push notification in ios application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages