This is a very simple GCM library for Codeigniter. Usage: if($this->gcm->send($devicetoken,$apikey,$message)) { //message sent } else { //message not sent }