Download the PHP package davidcao626/suning-sdk without Composer

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

suning-sdk

基于苏宁开放平台SDK(PHP)封装的 Composer Package 组件包.

StyleCI build status

安装:

说明:

目前只完成了政企业务(govbus)API封装 官方文档

其他官方功能API 添加封装方法 参考 /src/Request/govbus/ 下的实现

使用方法:

laravel 框架中使用

laravel 5.5以下安排完毕后需要自行配置ServiceProvider:

config/app.php文件providers中添加 DavidCao626\SuningSdk\ServiceProvider::class

laravel >=5.5 自动注册

1.安装完毕后,config/services.php添加appkey等相关配置

2. .env文件中新增配置项

3. 配置完毕,新建控制器 开始写业务代码

如上,可以用两种方式来获取 DavidCao626\SunningSdk\DefaultSuningClient 实例:

方法注入

服务名访问

相关链接

苏宁开放平台-SDK下载介绍

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.

License

Apache Licence 2.0


All versions of suning-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
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 davidcao626/suning-sdk contains the following files

Loading the files please wait ....