{"id":24722027,"url":"https://github.com/hill-98/aliyun-ddns-php","last_synced_at":"2025-10-09T18:30:46.975Z","repository":{"id":36122122,"uuid":"178667724","full_name":"Hill-98/aliyun-ddns-php","owner":"Hill-98","description":"Alibaba Cloud DDNS for PHP","archived":true,"fork":false,"pushed_at":"2022-04-02T16:41:05.000Z","size":308,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T19:00:04.980Z","etag":null,"topics":["aliyun","ddns","openwrt","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hill-98.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","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":"2019-03-31T09:32:24.000Z","updated_at":"2024-01-09T09:42:42.000Z","dependencies_parsed_at":"2022-08-08T13:16:16.413Z","dependency_job_id":null,"html_url":"https://github.com/Hill-98/aliyun-ddns-php","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Hill-98/aliyun-ddns-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hill-98%2Faliyun-ddns-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hill-98%2Faliyun-ddns-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hill-98%2Faliyun-ddns-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hill-98%2Faliyun-ddns-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hill-98","download_url":"https://codeload.github.com/Hill-98/aliyun-ddns-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hill-98%2Faliyun-ddns-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001947,"owners_count":26083226,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","ddns","openwrt","php"],"created_at":"2025-01-27T12:15:58.218Z","updated_at":"2025-10-09T18:30:46.554Z","avatar_url":"https://github.com/Hill-98.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aliyun-ddns-php\n\n\u003ca href=\"https://github.com/Hill-98/aliyun-ddns-php/releases/latest\"\u003e\u003cimg alt=\"Github Releases\" src=\"https://img.shields.io/github/v/release/Hill-98/aliyun-ddns-php\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Hill-98/aliyun-ddns-php/releases\"\u003e\u003cimg alt=\"Github Releases Download\" src=\"https://img.shields.io/github/downloads/Hill-98/aliyun-ddns-php/total\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/hill-98/aliyun-ddns-php\"\u003e\u003cimg alt=\"PHP Version\" src=\"https://img.shields.io/packagist/php-v/hill-98/aliyun-ddns-php\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Hill-98/aliyun-ddns-php/blob/master/LICENSE\"\u003e\u003cimg alt=\"MIT\" src=\"https://img.shields.io/github/license/Hill-98/aliyun-ddns-php\"\u003e\u003c/a\u003e\n\n[更新日志](https://github.com/Hill-98/aliyun-ddns-php/blob/master/Changelog.md)\n\n如果你在寻找 2.0.0 版本之前的文档，请访问 [Wiki](https://github.com/Hill-98/aliyun-ddns-php/wiki) 。\n\n## 简介\n\n它不只是 DDNS\n\n它可以通过路由器/网关的 dnsmasq 将域名解析到本地 IP，实现本地 0 延迟响应解析。\n\n鉴于安全性，它支持自动设置路由器/网关的防火墙规则，特别适合 IPv6 环境使用。\n\n如果担心执行时发生错误，它支持通过电子邮件发送错误信息。\n\n## 安装\n\n运行需求： [PHP](https://php.net) 8.0+\n\n[点击这里](https://github.com/Hill-98/aliyun-ddns-php/releases/latest/download/aliyun-ddns-php.zip) 下载最新版本\n\n## 配置\n\n复制`config.example.php`到`config.php`\n\n编辑`config.php`\n\n如需用路由器/网关功能，路由器必须支持 Luci RPC，且必须正确设置 `CONFIG_LUCI_RPC_URL`, `CONFIG_LUCI_USERNAME` 和 `CONFIG_LUCI_PASSWORD`\n\n如需使用电子邮件发送错误，必须正确设置电子邮件配置项，且 `CONFIG_ERROR_MAIL` 为 `true`\n\n## 使用\n\n支持 GET (POST) 和 CLI 方式运行\n\nOpenWrt 触发执行：[文档](https://github.com/Hill-98/aliyun-ddns-php/blob/master/docs/Automation.md)\n\n参数名       | 必要 |        说明      |     备注\n------------|:---:|------------------|---------------\ndomain      |  √  | 域名             | 必须存在于你的 DNS 云解析\nip          |  √  | 解析记录的 IP     | 如果是 `ipv4` 或 `ipv6` 会自动获取对应公网 IP\nname        |  √  | 解析记录的主机记录 |\nlocal-ip    |  ×  | 本地 IP          | 使用路由器/网关的 dnsmasq 把解析域名指向本地 IP\nrule-name   |  ×  | 防火墙规则名称    | 自动更新路由器/网关的防火墙规则，防火墙规则配置详见 [文档](https://github.com/Hill-98/aliyun-ddns-php/blob/master/docs/FirewallRule.md)\n\n执行成功：HTTP 响应代码为 `200` 或 CLI 退出代码为 `0` \n\n#### 示例：\n\n自动获取公网 IPv6 地址并解析到 test.example.com\n\n**GET:** `http://aliddns.localhost/index.php?domain=example.com\u0026name=test\u0026ip=ipv6`\n\n**CLI:** `php /opt/AliDDNS/index.php --domain example.com --name test --ip ipv6`\n\n## 贡献\n\n欢迎 [Fork](https://github.com/Hill-98/aliyun-ddns-php/fork) 本项目并提交 [PR](https://github.com/Hill-98/aliyun-ddns-php/pulls) 。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhill-98%2Faliyun-ddns-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhill-98%2Faliyun-ddns-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhill-98%2Faliyun-ddns-php/lists"}