定制 rsupan/globelabs 二次开发

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

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

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

Globelabs API Documentation.

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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-08-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固