PHP Classes

PHP Push Notification Android and iOS: Send push notifications to Android and iOS devices

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (7)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 2,326 All time: 1,675 This week: 89Up
Version License PHP version Categories
gcm-apns 0.1GNU General Publi...5.3PHP 5, Wireless and Mobile, Web services


This class can send send push notifications to Android and iOS devices.

It can send HTTP requests to the API Web servers of GCM (Google Cloud Messaging) and APNS (Apple Push Notification Service) to send a given push notification message to a specified device with a give registration ID.

The authorization key and the SSL certificate are configurable parameters.

Innovation Award
PHP Programming Innovation award nominee
January 2015
Number 2
Push notifications are very important for many mobile applications that need to notify their users.

The actual delivery of push notifications depends on the operating system used on the user mobile device.

The majority of the mobile devices use either Android or iOS. This class provides a unified solution that can send push notifications for either Android and iOS devices.

Manuel Lemos
Picture of YoungHyeong Ryu
  Performance   Level  
Name: YoungHyeong Ryu <contact>
Classes: 3 packages by
Country: South Korea South Korea
Age: 51
All time rank: 9691 in South Korea South Korea
Week rank: 276 Up1 in South Korea South Korea Equal
Innovation award
Innovation award
Nominee: 1x


please tell me all information about notification system

Pass data from PHP to android
Send data from PHP to android

What is the best PHP push notification for web class?
Push notification for Web applications


include_once 'class.push.php';
$push = new pushmessage();

$params = array("pushtype"=>"android", $idphone=>"android_smart_phone_id_here", $mst=>"Hello, an android user");
$rtn = $push->sendMessage($params);

  Files folder image Files  
File Role Description
Plain text file class.push.php Class GCM and Apns API Class
Accessible without login Plain text file index.php Example Example php Script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,675
This week:89Up
User Ratings User Comments (4)
 All time
Very Helpful
6 years ago (Manjunath Mg)
It is an amazing class, very helpfull, but I need to adapt it.
8 years ago (Paulo de Almeida)
You should explain where to collect "android_smart_phone_id".
9 years ago (Tariqul Islam)
This is a very interesting class ;-)
9 years ago (Josť Filipe Lopes Santos)