PHP code example of eddycjy / aliyun-api-gateway-sdk

1. Go to this page and download the library: Download eddycjy/aliyun-api-gateway-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

eddycjy / aliyun-api-gateway-sdk example snippets

 php
return [
    'AccessKeyId'       => '',
    'AccessKeySecret'   => '',
    'Format'            => 'json',
    'Version'           => '2016-07-14',
    'SignatureMethod'   => 'HMAC-SHA1',
    'SignatureVersion'  => '1.0'
];
 php
namespace ApiGateway\Model\Api;

use ApiGateway\ApiModel;

class CreateApi extends ApiModel
{
    public $GroupId;

    public function setGroupId($id)
    {
        $this->GroupId = $id;

        return $this;
    }

    ...