Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple Codeigniter 3 library for Firebase Cloud messaging

License

NotificationsYou must be signed in to change notification settings

ImWizeon/Codeigniter-FCM-Library

Repository files navigation

A simple codeigniter library for Firebase Cloud messaging.
This is a very simple implementation of firebase cloud messaging library for codeigniter 3.*

Installation

Put the config file in theapplication/config folder.
Similarly copy theFcm.php file to the codeignitersapplication/libraries folder.

Usage

public function sendNotification(){   $token = 'Registratin_id'; // push token   $message = "Test notification message";   $this->load->library('fcm');   $this->fcm->setTitle('Test FCM Notification');   $this->fcm->setMessage($message);   $json = $this->fcm->getPush();   $p = $this->fcm->send($token, $json);}

Examples are in theexample_controller.php file.

License

MIT

About

A simple Codeigniter 3 library for Firebase Cloud messaging

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp