2017 © Pedro Peláez
 

library aliyun-acm

The aliyun ACM SDK for php

image

verystar/aliyun-acm

The aliyun ACM SDK for php

  • Thursday, July 5, 2018
  • by fifsky
  • Repository
  • 2 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Aliyun-ACM SDK for PHP

Build Status Total Downloads Latest Stable Version, (*1)

Aliyun ACM SDK for PHP, Multi-ip polling and local file cache is supported, (*2)

Install

composer require fifsky/aliyun-acm

Or add a dependency to the composer.json, (*3)

"require": {
    "fifsky/aliyun-acm": "1.0.*"
}

Run, (*4)

composer update

Usage

use Aliyun\ACM\Client;

$client = new Client([
    "accessKey"=>"***********",
    "secretKey"=>"***********",
    "endPoint"=>"acm.aliyun.com",
    "nameSpace"=>"***********",
    "timeOut"=>30, //long pull timeout default 30s
]);


//get config
$ret = $client->getConfig("test","DEFAULT_GROUP");
print_r($ret);

//subscribe 
$ret = $client->subscribe("test","DEFAULT_GROUP");
print_r($ret);

//pulish
$ret = $client->publish("test","DEFAULT_GROUP","config content");
print_r($ret);


//remove config
$ret = $client->delete("test","DEFAULT_GROUP");
print_r($ret);

//get all config by tenant
$ret = $client->getAllConfigs(1,1);
print_r($ret);

Exception

If the API request fails, an throw exception is RequestException, (*5)

use Aliyun\ACM\RequestException;

try{
    $ret = $client->getConfig("test","DEFAULT_GROUP");
    print_r($ret);    
}catch (RequestException $e){
    print_r($e);   
}

License

The SDK is open-sourced software licensed under the MIT license., (*6)

The Versions

05/07 2018

dev-master

9999999-dev

The aliyun ACM SDK for php

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Xudong Cai

aliyun acm verystar

05/07 2018

v1.0.2

1.0.2.0

The aliyun ACM SDK for php

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Xudong Cai

aliyun acm verystar

04/07 2018

v1.0.1

1.0.1.0

The aliyun ACM SDK for php

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Xudong Cai

aliyun acm verystar

04/07 2018

v1.0.0

1.0.0.0

The aliyun ACM SDK for php

  Sources   Download

MIT

The Requires

  • php >=5.6

 

by Xudong Cai

aliyun acm verystar