定制 vdbf/pushover-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

vdbf/pushover-php

最新稳定版本:0.0.2

Composer 安装命令:

composer require vdbf/pushover-php

包简介

README 文档

README

Pushover REST API implementation in PHP

##Installation

All you have to do is execute: composer require vdbf/pushover-php 0.0.2

Alternatively, you can edit composer.json and add the following entry to the require section:

    'vdbf/pushover-php' : '0.0.2'

##Example usage

require dirname(__DIR__) . '/vendor/autoload.php';

//setup pushover client
$pusher = new \Vdbf\Pushover\Client(array('token' => $argv[1]), new \GuzzleHttp\Client());

//compose a message
$message = new \Vdbf\Pushover\Message($argv[2], $argv[3]);

//push a message
$pusher->send($message);

Integration

At the moment of writing, integration for Laravel 4.* is supported. A service provider and a facade class are supplied. Installation is done in 2 simple steps after the general installation steps:

  1. edit app/config/app.php to add the service provider and the facade class
    'providers' => array(
      ...
      'Vdbf\Pushover\Support\Laravel\PushoverProvider'
    )
    
    'aliases' => array(
      ...
      'Pushover' => 'Vdbf\Pushover\Support\Laravel\PushoverFacade'
    )
  1. edit app/config/services.php (supplied by default from L4.2) to add a token setting
    'pushover' => array(
      'token' => YOUR_PUSHOVER_APP_TOKEN
    )

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-11-05