{"id":20010330,"url":"https://github.com/fifsky/aliyun-acm","last_synced_at":"2025-12-31T14:42:46.023Z","repository":{"id":57077603,"uuid":"139594012","full_name":"fifsky/aliyun-acm","owner":"fifsky","description":"Aliyun ACM SDK for PHP","archived":false,"fork":false,"pushed_at":"2019-06-13T05:37:42.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-02T18:46:00.530Z","etag":null,"topics":["acm","aliyun","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fifsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-03T14:18:11.000Z","updated_at":"2019-06-18T08:56:20.000Z","dependencies_parsed_at":"2022-08-24T14:56:07.431Z","dependency_job_id":null,"html_url":"https://github.com/fifsky/aliyun-acm","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/fifsky/aliyun-acm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fifsky%2Faliyun-acm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fifsky%2Faliyun-acm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fifsky%2Faliyun-acm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fifsky%2Faliyun-acm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fifsky","download_url":"https://codeload.github.com/fifsky/aliyun-acm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fifsky%2Faliyun-acm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265815810,"owners_count":23833016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acm","aliyun","php"],"created_at":"2024-11-13T07:19:19.865Z","updated_at":"2025-12-31T14:42:45.977Z","avatar_url":"https://github.com/fifsky.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aliyun-ACM SDK for PHP\n\n\u003ca href=\"https://travis-ci.org/fifsky/aliyun-acm\"\u003e\u003cimg src=\"https://api.travis-ci.org/fifsky/aliyun-acm.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/fifsky/aliyun-acm\"\u003e\u003cimg src=\"https://poser.pugx.org/fifsky/aliyun-acm/d/total.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/fifsky/aliyun-acm\"\u003e\u003cimg src=\"https://poser.pugx.org/fifsky/aliyun-acm/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\nAliyun ACM SDK for PHP, Multi-ip polling and local file cache is supported\n\n## Install\n\n```\ncomposer require fifsky/aliyun-acm\n```\n\nOr add a dependency to the composer.json\n\n```\n\"require\": {\n    \"fifsky/aliyun-acm\": \"1.0.*\"\n}\n```\n\nRun\n```\ncomposer update\n```\n\n## Usage\n\n```php\nuse Aliyun\\ACM\\Client;\n\n$client = new Client([\n    \"accessKey\"=\u003e\"***********\",\n    \"secretKey\"=\u003e\"***********\",\n    \"endPoint\"=\u003e\"acm.aliyun.com\",\n    \"nameSpace\"=\u003e\"***********\",\n    \"timeOut\"=\u003e30, //long pull timeout default 30s\n]);\n\n\n//get config\n$ret = $client-\u003egetConfig(\"test\",\"DEFAULT_GROUP\");\nprint_r($ret);\n\n//subscribe \n$ret = $client-\u003esubscribe(\"test\",\"DEFAULT_GROUP\");\nprint_r($ret);\n\n//pulish\n$ret = $client-\u003epublish(\"test\",\"DEFAULT_GROUP\",\"config content\");\nprint_r($ret);\n\n\n//remove config\n$ret = $client-\u003edelete(\"test\",\"DEFAULT_GROUP\");\nprint_r($ret);\n\n//get all config by tenant\n$ret = $client-\u003egetAllConfigs(1,1);\nprint_r($ret);\n```\n\n## Exception\nIf the API request fails, an throw exception is RequestException\n\n```php\nuse Aliyun\\ACM\\RequestException;\n\ntry{\n    $ret = $client-\u003egetConfig(\"test\",\"DEFAULT_GROUP\");\n    print_r($ret);    \n}catch (RequestException $e){\n    print_r($e);   \n}\n```\n\n## License\nThe SDK is open-sourced software licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffifsky%2Faliyun-acm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffifsky%2Faliyun-acm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffifsky%2Faliyun-acm/lists"}