Download the PHP package jdcloud-api/apigateway-signer without Composer

On this page you can find all versions of the php package jdcloud-api/apigateway-signer. 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 apigateway-signer

简介

该项目实现京东云API网关签名的生成,适用于API网关产品,也可用于OpenAPI的签名生成。

环境准备

1.京东云Php SDK适用于Php 5.5及以上。

2.如果用于OpenAPI的签名,需要在京东云用户中心账户管理下的AccessKey管理页面申请accesskey和secretKey密钥对(简称AK/SK);如果用于API网关的签名,可根据情况使用云用户密钥对或者API网关签名密钥

SDK使用方法

建议使用Composer安装京东云Php签名工具:

首先在composer.json添加

"require" : {
    "php" : ">=5.5",
    "jdcloud-api/apigateway-signer" : ">=0.1",
}

然后使用Composer安装

php composer.phar install

composer install 

您还可以下载sdk源代码自行使用。

SDK使用中的任何问题,欢迎您在Github SDK使用问题反馈页面交流。

调用示例

demo中包含了简单的调用示例。

    $credentials = new Credentials('ak', 'sk');
    $signature = new SignatureV4('testApiGroup', 'cn-north-1');
    $request = new Request('POST', 'http://xqokj9u7k483.cn-north-1.jdcloud-api.net/iampost?param=param',
        [
            'x-my-header' => 'test'
        ], 
        'body data'
        );
    $signedRequest = $signature->signRequest($request, $credentials);
    $client = new Client();
    $response = $client->send($signedRequest, [
            'timeout' => 20,
    ]);

注意事项


All versions of apigateway-signer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
guzzlehttp/guzzle Version ^5.3.1|^6.2.1
guzzlehttp/psr7 Version ^1.4.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 jdcloud-api/apigateway-signer contains the following files

Loading the files please wait ....