Skip to content

This extension will make send firebase notifications easy to do for the Yii2 framework.

License

Notifications You must be signed in to change notification settings

Mackiavelly/yii2-firebase-notification

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Notifications Yii2

This extension will make send firebase notifications easy to do for the Yii2 framework.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisities

Yii2 application

composer require yiisoft/yii2

Installing

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist "mackiavelly/yii2-firebase-notifications": "dev-master"

or add

"mackiavelly/yii2-firebase-notifications": "dev-master"

to the require section of your composer.json file.

Usage

$service = new FirebaseNotifications(['authKey' => 'YOUR_KEY']);

$service->sendNotification($tokens, $message);

you can clone the android build here, and use it to test your code.

About

This extension will make send firebase notifications easy to do for the Yii2 framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%