Download the PHP package jmcc/digiwin_e10_api without Composer

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

鼎捷 E10 API 基类说明

这是一个用于调用鼎捷 E10 API 的 Composer 包,内置基于 Guzzle 的 HTTP 请求封装,并在请求时生成 E10 集成服务需要的 digi-hostdigi-service 等请求头。

Composer 安装

安装后请确认项目已加载 Composer 自动加载文件:

必填配置

当前客户端通过 config('erp.xxx') 读取 E10 连接参数,因此安装后需要在项目配置文件中增加 erp 配置。

如果是 Laravel 项目,建议新增或补充 config/erp.php

对应 .env 示例:

配置项说明

配置项 必填 说明 使用位置
erp.host E10 集成服务主机地址或 IP digi-service.ip
erp.uri E10 API 基础请求地址 Guzzle base_uri
erp.ver 调用端版本号 digi-host.ver
erp.prod 调用端产品标识 digi-host.prod
erp.service E10 集成服务 ID digi-service.id
erp.acct E10 账套编号或账套标识 digi-host.acct

调用示例

调用接口时,第三个参数中的 name 会写入 digi-service.name,通常对应 E10 中配置的服务名称。

请求头生成规则

客户端会根据配置和当前请求信息生成以下请求头:

请求头 说明
digi-key digi-hostdigi-service JSON 字符串拼接后的 MD5
digi-host 调用端主机信息,包含 verprodtimezoneiplangaccttimestamp
digi-service E10 集成服务信息,包含 prodipnameid
digi-data-exchange-protocol 固定为 1.0
digi-type 固定为 sync
Content-Type 固定为 application/json

注意事项


All versions of digiwin_e10_api with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.0.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 jmcc/digiwin_e10_api contains the following files

Loading the files please wait ...