inquid / yii2-firebase-notifications
This extension will make send firebase notifications easy to do for the Yii2 framework
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 14
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-10-27 12:07:48 UTC
README
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.
Installing
The preferred way to install this extension is through composer.
Either run
composer require inquid/yii2-firebase-notifications
or add
"inquid/yii2-firebase-notifications": "dev-master"
to the require section of your composer.json file.
Usage
$service = new FirebaseNotifications(['authKey' => 'YOUR_KEY']); $service->sendNotification(['to' => 'MyTopic','title'=>'New Alert', 'body' => 'New Sent Alert']);
You can clone the android build here, and use it to test your code.