{"id":22702225,"url":"https://github.com/jimchenwyu/aliyun-acm","last_synced_at":"2025-03-29T19:27:01.281Z","repository":{"id":56999042,"uuid":"264620570","full_name":"JimChenWYU/aliyun-acm","owner":"JimChenWYU","description":"阿里云ACM PHP SDK","archived":false,"fork":false,"pushed_at":"2020-05-24T04:08:41.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T20:18:38.811Z","etag":null,"topics":["aliyun","aliyun-acm","library","php7","sdk-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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JimChenWYU.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-17T08:55:56.000Z","updated_at":"2020-05-17T09:38:28.000Z","dependencies_parsed_at":"2022-08-21T13:50:29.275Z","dependency_job_id":null,"html_url":"https://github.com/JimChenWYU/aliyun-acm","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimChenWYU%2Faliyun-acm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimChenWYU%2Faliyun-acm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimChenWYU%2Faliyun-acm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimChenWYU%2Faliyun-acm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JimChenWYU","download_url":"https://codeload.github.com/JimChenWYU/aliyun-acm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246233145,"owners_count":20744781,"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":["aliyun","aliyun-acm","library","php7","sdk-php"],"created_at":"2024-12-10T07:12:35.377Z","updated_at":"2025-03-29T19:27:01.252Z","avatar_url":"https://github.com/JimChenWYU.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e PHP SDK for aliyun ACM. \u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e 阿里云ACM PHP SDK.\u003c/p\u003e\n\n\n## Installing\n\n```shell\n$ composer require jimchen/aliyun-acm -vvv\n```\n\n## Usage\n\n```php\nuse Aliyun\\Acm\\Client;\n\n$client = new Client('acm.aliyun.com');\n$client-\u003esetAccessKey('your access key');\n$client-\u003esetSecretKey('your secret key');\n$client-\u003esetNameSpace('your namespace');\n$client-\u003esetNameSpace('your namespace');\n$client-\u003esetAppName('your app name');\n\n/** \n * 在进行下面操作前必须调用获取服务器IP列表 refreshAcmServerIpList()\n * @see https://help.aliyun.com/document_detail/64129.html?spm=a2c4g.11186623.6.574.bef5674fio1Bnv \n */\n$client-\u003erefreshAcmServerIpList();\n\n/**\n * 获取配置\n * @see https://help.aliyun.com/document_detail/64131.html?spm=a2c4g.11186623.6.576.5305674fxujgIk\n * @var string $config \n */\n$config = $client-\u003egetConfig('your dataId', 'your group');\n/**\n * 发布配置\n * @see https://help.aliyun.com/document_detail/69307.html?spm=a2c4g.11186623.6.578.2cf37a1c8vxBgD\n * @var bool $isPublish \n */\n$isPublish = $client-\u003epublish('your dataId', 'your group', '{\"a\":1}');\n/** \n * 删除配置\n * @see https://help.aliyun.com/document_detail/69308.html?spm=a2c4g.11186623.6.579.23e052b5igAgFi\n * @var bool $isRemove \n */\n$isRemove = $client-\u003eremove('your dataId', 'your group');\n/** \n * 检查配置是否更新，如果检测到更新会立即返回true，否则会进行长轮询等待30秒\n * @see https://help.aliyun.com/document_detail/64132.html?spm=a2c4g.11186623.6.577.5b9111b6a3vgi8\n * @var bool $isModify \n */\n$isModify = $client-\u003echeckIfModify('your dataId', 'your group', '{\"a\":1}');\n```\n\n## Contributing\n\nYou can contribute in one of three ways:\n\n1. File bug reports using the [issue tracker](https://github.com/JimChenWYU/aliyun-acm/issues).\n2. Answer questions or fix bugs on the [issue tracker](https://github.com/JimChenWYU/aliyun-acm/issues).\n3. Contribute new features or update the wiki.\n\n_The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable._\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimchenwyu%2Faliyun-acm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimchenwyu%2Faliyun-acm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimchenwyu%2Faliyun-acm/lists"}