ntfy php library
Version 4.7.0
用于使用NTFY服务器发送消息的PHP库。
支持NTFY服务器版本2。
composer require verifiedjoseph/ntfy-php-library
require __DIR__ . ' /vendor/autoload.php ' ;
use Ntfy Server ;
use Ntfy Message ;
use Ntfy Client ;
$ server = new Server ( ' https://ntfy.sh/ ' );
$ message = new Message ();
$ message -> topic ( ' mytopic ' );
$ message -> title ( ' Hello World ' );
$ message -> body ( ' Hello World from ntfy.sh ' );
$ message -> priority (Message:: PRIORITY_HIGH );
$ client = new Client ( $ server );
$ client -> send ( $ message );JSONcURL guzzlehttp/guzzle
该项目的所有值得注意的更改都记录在ChangElog中。
麻省理工学院许可证。请参阅许可证以获取更多信息。