Download the PHP package sudiyi/sudiyi-open-php-sdk without Composer

On this page you can find all versions of the php package sudiyi/sudiyi-open-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sudiyi-open-php-sdk

Sudiyi Open Platform SDK for PHP

Latest Stable Version Build Status Coverage Status

概述

速递易开放平台是速递易为企业或商户开通的速递易箱格接口,无缝对接PC网站、微信公众号、APP,帮助商家提升配送效率,降低配送成本,解决快件最后100米难题。

运行环境

安装方法

  1. 如果您通过composer管理您的项目依赖,可以在你的项目根目录运行:

    $ composer require sudiyi/sudiyi-open-php-sdk

    或者在你的composer.json中声明对速递易开放平台 SDK 的依赖:

    "require": {
        "sudiyi/sudiyi-open-php-sdk": "~1.0"
    }

    然后通过composer install安装依赖。

  2. 下载SDK源码,在您的代码中引入 SDK 目录下的autoload.php文件:

    require_once '/path/to/sudiyi-open-php-sdk/autoload.php';

SDK 主要目录结构

快速使用

Sudiyi\Open\Api 是对速递易开方平台的接口封装,用户通过 Api 的实例来执行各种操作

初始化

调用接口

更多接口的调用方式,请参见 example 或参看官方文档

返回结果

异常处理

SDK 执行过程中若遇到异常,将会抛出一个 SdyException 异常,用户可自行捕获并处理。

运行Sample程序

  1. 修改 example/api_use_demo.php, 补充配置信息
  2. 执行 php ./example/api_use_demo.php

运行单元测试

  1. 执行composer install下载依赖的库
  2. 设置环境变量

    export SDY_PARTNER_ID=partner_id
    export SDY_PARTNER_KEY=partner_key
  3. 执行 php vendor/bin/phpunit

问题反馈

Goto: ISSUES

开源协议

MIT


All versions of sudiyi-open-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sudiyi/sudiyi-open-php-sdk contains the following files

Loading the files please wait ....