tackk/shover 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

tackk/shover

Composer 安装命令:

composer require tackk/shover

包简介

A lightweight PHP interface for the Pusher API

README 文档

README

A lightweight PHP interface for the Pusher API.

Installation

Composer

"tackk/shover": "1.1.*"

Transports

All transports must extend the Tackk\Shover\Transport\AbstractTransport.

Two (2) transports are included by default:

  • Tackk\Shover\Transport\Curl - Uses the PHP Curl extension.
  • Tackk\Shover\Transport\Guzzle - Uses Guzzle.

Curl

<?php
use Tackk\Shover\Credentials;
use Tackk\Shover\Transport\Curl;
use Tackk\Shover\Client;

require 'vendor/autoload.php';

$credentials = new Credentials('3', '278d425bdf160c739803', '7ad3773142a6692b25b8');
$transport = new Curl($credentials);
$client = new Client($transport);

$client->trigger('test_channel', 'send', ['message' => 'test']);

Guzzle

Note: You must have Guzzle installed.

<?php
use Tackk\Shover\Credentials;
use Tackk\Shover\Transport\Guzzle;
use Tackk\Shover\Client;

require 'vendor/autoload.php';

$credentials = new Credentials('3', '278d425bdf160c739803', '7ad3773142a6692b25b8');
$transport = new Guzzle($credentials);
$client = new Client($transport);

$client->trigger('test_channel', 'send', ['message' => 'test']);

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 6
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-02-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固