akk7300/pushy

laravel notification sending with pushy

v1.0.0 2023-09-12 08:17 UTC

This package is auto-updated.

Last update: 2024-09-12 10:40:14 UTC


README

This package allows you to send push notifications using Pushy. It provides a convenient way to integrate Pushy's services into your Laravel applications.

Installation

You can install the package via Composer:

composer require akk7300/pushy

Copy Config

Run php artisan vendor:publish --provider="Akk7300\Pushy\PushyServiceProvider" to publish the pushy.php config file.

Get API Secret Key

Get Authentication Key from https://dashboard.pushy.me/

Configure pushy.php as needed

'api_key' => '{API_SECRET_KEY}'

Usage

use Akk7300\Pushy\Facade\Pushy;

Pushy::withTitle('Testing')
   ->withBody('Testing message')
   ->withData(['message' => 'This is an message field'])
   ->sendTo(['pushy-token']);

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.