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 66%Total: 2,324 All time: 1,675 This week: 132Up
Version License PHP version Categories
gcm-apns 0.1GNU General Publi...5.3PHP 5, Wireless and Mobile, Web services
Description 

Author

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: 312 Up1 in South Korea South Korea Equal
Innovation award
Innovation award
Nominee: 1x

Recommendations

notification
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

Example

<?php
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);
//print_r($rtn);


  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  
 0%
Total:2,324
This week:0
All time:1,675
This week:132Up
User Ratings User Comments (4)
 All time
Utility:100%StarStarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:77%StarStarStarStar
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:492
 
Very Helpful
6 years ago (Manjunath Mg)
67%StarStarStarStar
It is an amazing class, very helpfull, but I need to adapt it.
8 years ago (Paulo de Almeida)
62%StarStarStarStar
You should explain where to collect "android_smart_phone_id".
9 years ago (Tariqul Islam)
57%StarStarStar
This is a very interesting class ;-)
9 years ago (José Filipe Lopes Santos)
70%StarStarStarStar