rsupan/globelabs
最新稳定版本:0.0.5
Composer 安装命令:
composer require rsupan/globelabs
包简介
Composer Package for GlobeLabs
关键字:
README 文档
README
- Simple PHP Wrapper for Globelabs SMS and Charging API
Usage
SMS API
<?php require_once __DIR__ . '/../vendor/autoload.php'; use Globelabs\SMS; $options = [ 'sender_address' => '{your_sender_address}', 'access_token' => '{your_access_token}', 'message' => 'hello', 'address' => '0906xxxxxxx', ]; var_dump(SMS::send_to($options)); ?>
Charging API
<?php require_once __DIR__ . '/../vendor/autoload.php'; use Globelabs\Charging; $options = [ 'amount' => '0.00', 'description' => 'Allowance', 'msisdn' => '906xxxxxxxx', 'transactionOperationStatus' => 'Charged', 'reference_code' => '{reference_code_see_documentation}', 'access_token' => '{access_token}', ]; var_dump(Charging::charge_to($options)); ?>
Help and docs
Installing Globelabs
The recommended way to install Globelabs is through Composer.
# Install Composer curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the latest stable version of Globelabs:
composer.phar require rsupan/globelabs 0.0.5
or add
"require": { "rsupan/globelabs": "0.0.5" }
to your composer.json file
After installing, you need to require Composer's autoloader:
require 'vendor/autoload.php';
You can then later update Globelabs using composer:
composer.phar update
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-08-05