walkboy/tangocard-raas-php 问题修复 & 功能扩展

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

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

walkboy/tangocard-raas-php

最新稳定版本:3.0.1

Composer 安装命令:

composer require walkboy/tangocard-raas-php

包简介

Unofficial Tango Card RaaS API

README 文档

README

This repository is maintained version of raas-v2-sdk-php for Tango Card RaaS which was deprecated and removed by them, but still maybe usefull for some projects.

Installation

composer require walkboy/tangocard-raas-php

Requirements

PHP 8 support >= 3.0.0 PHP 7 support <= 2.4.0

How To Use

For using this SDK do the following:

  1. Use Composer to install the dependencies. See the section "How To Build".

  2. See that you have configured your SDK correctly. See the section "How To Configure".

  3. Depending on your project setup, you might need to include composer's autoloader in your PHP code to enable autoloading of classes.

    require_once "vendor/autoload.php";
  4. Import the SDK client in your project:

    use RaasLib\RaasClient;
  5. Instantiate the client. After this, you can now get the controllers and call the respective methods:

    Configuration::$environment = 'sandbox'; // "production"
    $client = new RaasClient();
    $controller = $client->getStatus();

How To Test

Unit tests in this SDK can be run using PHPUnit.

  1. First install the dependencies using composer including the require-dev dependencies.
  2. Run vendor\bin\phpunit --verbose from commandline to execute tests. If you have installed PHPUnit globally, run tests using phpunit --verbose instead.

You can change the PHPUnit test configuration in the phpunit.xml file.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-04