akk7300/pushy

使用Pushy发送Laravel通知

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

This package is auto-updated.

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


README

此包允许您使用Pushy发送推送通知。它提供了一种方便的方法将Pushy的服务集成到您的Laravel应用程序中。

安装

您可以通过Composer安装此包

composer require akk7300/pushy

复制配置

运行 php artisan vendor:publish --provider="Akk7300\Pushy\PushyServiceProvider" 以发布 pushy.php 配置文件。

获取API密钥

https://dashboard.pushy.me/获取身份验证密钥

根据需要配置pushy.php

'api_key' => '{API_SECRET_KEY}'

用法

use Akk7300\Pushy\Facade\Pushy;

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

Laravel包模板

此包是使用Laravel包模板生成的。