pubq/pubq-php 问题修复 & 功能扩展

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

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

pubq/pubq-php

最新稳定版本:1.0.1

Composer 安装命令:

composer require pubq/pubq-php

包简介

PUBQ PHP SDK

README 文档

README

PUBQ is a pub/sub channels cloud and this is the official PHP client library including only REST interface.

To meet PUBQ and see more info and examples, please read the documentation.

Getting Started

Follow these steps to just start building with PUBQ in PHP or see the Quickstart guide which covers more programming languages.

Install with package manager

The PHP SDK is available as composer package on Packagist:

$ composer require pubq/pubq-php

Or manually add to composer.json:

"require": {
    "pubq/pubq-php": "^1.0.1"
}

Then run:

$ composer update

Interacting with PUBQ

Get your application API key from PUBQ dashboard by creating a new app or use existing one.

Construct REST interface of PUBQ PHP SDK:

<?php

$rest = new Pubq\REST(["key" => "YOUR_API_KEY"]);

Publish a message with REST interface:

$channel = $rest->channels->get('my-channel');
$channel->publish('Hello!');

Development

Please, read the contribution guide.

Setup

git clone git@github.com:pubqio/pubq-php.git
cd ./pubq-php/
composer install

Tests

To run tests using PHPUnit:

vendor/bin/phpunit tests

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-15