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:
- edit
app/config/app.phpto add the service provider and the facade class
'providers' => array(
...
'Vdbf\Pushover\Support\Laravel\PushoverProvider'
)
'aliases' => array(
...
'Pushover' => 'Vdbf\Pushover\Support\Laravel\PushoverFacade'
)
- edit
app/config/services.php(supplied by default from L4.2) to add atokensetting
'pushover' => array(
'token' => YOUR_PUSHOVER_APP_TOKEN
)
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-11-05