komicho/firebase

There is no license information available for the latest version (V1.0.0) of this package.

Send notifications through firebase using php

V1.0.0 2017-08-21 09:49 UTC

This package is not auto-updated.

Last update: 2024-11-10 03:56:41 UTC


README

You can send notifications with ease

Install via composer

Add orm to composer.json configuration file.

$ composer require komicho/firebase

And update the composer

$ composer update

code

require 'vendor/autoload.php';

use komicho\firebase;

$firebase = new firebase('api_access_key');

echo $firebase
    ->to('Token')
    ->notification([
        'title' => 'kom',
        'body' => 'komicho :)'
    ])
    ->data([ ... ])
    ->send();

"# firebase"