定制 websoftwares/yo 二次开发

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

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

websoftwares/yo

Composer 安装命令:

composer require websoftwares/yo

包简介

Yo API PHP Package

README 文档

README

#Yo (v0.2.1) This package lets u perform actions on the Yo Developers API.

Build Status Scrutinizer Code Quality Code Coverage Dependencies Status

It has no extra dependencies but it can play nice with other curl or http clients by creating an adapter just implement the YoClientInterface and inject it into the Yo class.

Documentation

We encourage you to read the documentation carefully before proceeding.

Installing via Composer (recommended)

Install composer in your project:

curl -s http://getcomposer.org/installer | php

Create a composer.json file in your project root:

{
    "require": {
        "websoftwares/yo": "~0.2"
    }
}

Install via composer

php composer.phar install

Usage

Basic usage of the Yo class.

use Websoftwares\YoClient, Websoftwares\Yo;

// apiKey
$apiKey = 'obtain-valid-api-key-from-yo';

// Instantiate class
$Yo = new Yo(new YoClient($apiKey));

// Perform method
$yo->all();

all();

This will yo all your subscribers

$yo->all();

(optional) provide a link argument This will yo all your subscribers with a link

$yo->all("yo.websoftwar.es");

user();

This will yo an individual user

$yo->user("BORIS010");

(optional) provide a link argument This will yo an individual user with a link

$yo->user("BORIS010", "yo.websoftwar.es");

subscribersCount();

Returns the amount of subscribers

$yo->subscribersCount();

Testing

In the tests folder u can find several tests.

Goals

  • Unit testing 100%
  • PSR compliance
  • Implement new methods from Yo API when they are available

License

The MIT License (MIT).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固