承接 tykfyr/ntfy-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tykfyr/ntfy-php

最新稳定版本:v1.0.1

Composer 安装命令:

composer require tykfyr/ntfy-php

包简介

Simple PHP wrapper for ntfy.sh.

README 文档

README

A simple PHP wrapper for ntfy.sh – send push notification directly from PHP.

🚀 Installation

composer require tykfyr/ntfy-php

📦 Usage

use Tykfyr\Ntfy\Client;

$ntfy = new Client('my-topic');

$ntfy->send('Backup job finished!');
$ntfy->send('Deployment failed!', [
    'priority' => 5,
    'title' => '🚨 Fejl i deployment',
    'tags' => ['warning', 'deploy'],
    'click' => 'https://example.com/status'
]);

⚙️ Configuration

You can set the default topic and server URL in the constructor:

$ntfy = new Client('alerts', [
    'base_url' => 'https://ntfy.example.com',
    'auth' => 'Bearer your-token'
]);

🧪 Test

You can run the tests using PHPUnit. Make sure you have PHPUnit installed and run:

vendor/bin/phpunit

🧠 More information

📝 License

This project is licensed under the MIT License. See the LICENSE file for details.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-07