opensooq/yii2-firebase-notifications

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

Installs: 13 768

Dependents: 0

Suggesters: 0

Security: 0

Stars: 15

Watchers: 5

Forks: 14

Open Issues: 1

Type:yii2-extension

dev-master 2018-04-11 10:30 UTC

This package is not auto-updated.

Last update: 2025-06-16 15:45:53 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.

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 "opensooq/yii2-firebase-notifications": "dev-master"

or add

"opensooq/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.