承接 notify-events/php 相关项目开发

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

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

notify-events/php

最新稳定版本:1.1.1

Composer 安装命令:

composer require notify-events/php

包简介

PHP extension to integrate your project with Notify.Events service.

README 文档

README

A simple PHP extension that simplifies the process of integrating your project with the Notify.Events service to send messages to your channels.

Instruction on another languages

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist notify-events/php

or add

"notify-events/php": "~1.0"

to the require section of your composer.json.

Usage

To use this extension, you need to import the Message class into your PHP script.

If you used composer for installation, it will be enough to include the autoload.php file:

require_once "vendor/autoload.php";

Otherwise, if you added the extension manually, you need to import the Message class by yourself:

require_once "path/to/notify-events/php/Message.php";

After that, you can create a message object, set the necessary parameters and send the message to the channel.

Usage example

<?php
    require_once "vendor/autoload.php";
    
    // Defining channel token.
    // You get this token when creating a channel on the Notify.Events service.
    $myChannelToken = 'XXXXXXXX';
    
    // Create a message object.
    $message = new Message('Some <b>important</b> message', 'Title', Message::PRIORITY_HIGH, Message::LEVEL_ERROR);

    // Attach the file to the message.
    $message->addFile('path\to\local\file');
    
    // Send a message to your channel in Notify.Events.
    $message->send($myChannelToken);
?>

List of all available functions

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固