journalctl/push-to-pushe

This package is abandoned and no longer maintained. No replacement package was suggested.

Send push notification to pushe users

v0.17 2019-05-11 09:55 UTC

This package is auto-updated.

Last update: 2022-12-30 14:29:23 UTC


README

Send simple push notification by pushe service in laravel.

Install

This package can be installed through Composer.

composer require journalctl/push-to-pushe
php artisan vendor:publish

Config

Add your pushe token and app_ids to config/push-to-pushe.php.

[
    'app_ids' => ['appId-1'],
    'token' => 'your-pushe-service-token',
]

Usage

Add HasPushToPushe trait to your [user] model.

use Journalctl\HasPushToPushe;

...

use HasPushToPushe;

..

Save pushe ids

use Journalctl\PushToPushe\PushToPushe;

...

$user->pusheIds()->save(new PushToPushe(['pushe_id' => 'your-client-pushe-id']));

...

Send push notify

$user->pushToPushe('First notify', 'The first push to pushe notification!');

Contributing

Thank you for considering contributing to PushToPushe!

License

The PushToPushe is open-source software licensed under the MIT license.