bandwidth/catapult 问题修复 & 功能扩展

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

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

bandwidth/catapult

最新稳定版本:v0.10.0

Composer 安装命令:

composer require bandwidth/catapult

包简介

Bandwidth's Catapult SDK for PHP

README 文档

README

Deprecation Notice

This projected is deprecated. Please go to https://github.com/Bandwidth/php-sdk

SDK for Bandwidth's App Platform

Documentation

Installing:

to install, with composer

composer require bandwidth/catapult

OR after cloning:

composer update

Running from source

You can also use Bandwidth without composer, you only need to include "Catapult.php" from /source/

Example:

require "source/Catapult.php"

API keys

REMEMBER to configure your API keys. You can do this in 'one' of two ways:

  1. Update credentials.json with your keys. If you use this method, use this constructor:

    $cred = new Catapult\Credentials;

    Also, be sure to protect that file from external access

  2. Specify your keys to the Catapult client. If you use this method, use this constructor

$cred = new Catapult\Credentials('your Bandwidth App Platform user-id here', 'your bandwidth app platform token here', 'your bandwidth api secret here');

unit tests.

In ./tests there are a list of tests to run any we need phpunit:

composer require phpunit

and to run a rest:

php phpunit.phar --bootstrap ../source/Catapult.php {test_name}

where test name can be any of the listed tests.

Requirements

  • needed:
  • php >= 5.3.0
  • libCurl

optional:

  • openSSL

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 21
  • Forks: 22
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-21