定制 ontraport/sdk-php 二次开发

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

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

ontraport/sdk-php

最新稳定版本:v1.2.2

Composer 安装命令:

composer require ontraport/sdk-php

包简介

ONTRAPORT PHP Library

README 文档

README

Requirements

PHP version 5.3.2 or greater.

Documentation

Visit our API documentation page for detailed usage information and code examples.

Composer

If you are using composer, you can install our SDK on the command line by entering

composer require ontraport/sdk-php

You can also manually add it to your composer.json file:

{
    "require": {
        "ontraport/sdk-php": "*"
    }
}

To use the library, include Composer's autoload in your scripts:

require_once('vendor/autoload.php');

Manual Installation

If you are not using composer, you can download the latest version. Make sure to include the Ontraport.php file to use this library in your code:

require_once('path/to/src/Ontraport.php');

Namespacing

Our API wrapper is namespaced. This helps you to avoid collisions between the classes and functions in our wrapper and external classes and functions which might have the same name. This means if you want to create an instance of the Ontraport class, you need to either import the OntraportAPI namespace:

use OntraportAPI\Ontraport;

or use a qualified name:

$client = new OntraportAPI\Ontraport("2_AppID_12345678","Key5678")

Click here for more about namespacing in PHP.

统计信息

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

GitHub 信息

  • Stars: 19
  • Watchers: 16
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-25