Download the PHP package wenhsing/tongtu-sdk-php without Composer

On this page you can find all versions of the php package wenhsing/tongtu-sdk-php. 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 tongtu-sdk-php

通途ERP2.0接口请求封装包

因为一些原因,之前的扩展包已经进入了历史的长河中,不过我自己又尝试了新的写法将这些请求封装了一下,以便自己之后学习。简介的话,看名字也就知道了,主要是为了对接通途ERP2.0相关接口而封装的一个 PHP 扩展包,其他的也就不多说了,就简单说一下使用方法吧。

安装

按照大多数 composer 包一样的安装方式:

在 Laravel 中使用

使用之前,需要设置通途的相关参数,如果你的是 Laravel 框架,那么安装好之后,可以通过下面的方式生成 tongtu.php 配置文件:

然后你就可以在你想要使用扩展的地方使用就好,例如下面进行订单查询:

在其他地方使用

其他

如果想要在运行的时候动态修改配置,可以使用下面的方式

例如上面的代码,可以在最后一句前设置一下,以便关闭通途,并报一个提示应用已关闭的异常

或者,你可以再重新注入一个 Config

注意: 封装的包可能有些因为通途官方有更新修改,导致接口不能使用,你可以选择自行修改,也可以联系我进行包升级,只不过后面的方式会慢一些。


All versions of tongtu-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
ext-curl Version ^7.2
guzzlehttp/guzzle Version ^6.0 || ^7.0
monolog/monolog Version ^2.0
psr/container Version ^1.0
symfony/event-dispatcher Version ^4.4 || ^5.0
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 wenhsing/tongtu-sdk-php contains the following files

Loading the files please wait ....