PHPackages                             hill-98/aliyun-ddns-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hill-98/aliyun-ddns-php

AbandonedArchivedProject[Utility &amp; Helpers](/categories/utility)

hill-98/aliyun-ddns-php
=======================

Alibaba Cloud DDNS for PHP

2.0.2(4y ago)1162GPL-3.0PHPPHP ^8.0

Since May 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Hill-98/aliyun-ddns-php)[ Packagist](https://packagist.org/packages/hill-98/aliyun-ddns-php)[ RSS](/packages/hill-98-aliyun-ddns-php/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (10)Versions (5)Used By (0)

aliyun-ddns-php
===============

[](#aliyun-ddns-php)

[![Github Releases](https://camo.githubusercontent.com/c166aff401eb343e604ac2534ac79e6abbf1aa437645ebad168dd422114afac1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f48696c6c2d39382f616c6979756e2d64646e732d706870)](https://github.com/Hill-98/aliyun-ddns-php/releases/latest)[![Github Releases Download](https://camo.githubusercontent.com/a8bdb68ea62dfa89a3e873aca598c20783b055cfac96bb9bacb3bb8318292280/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f48696c6c2d39382f616c6979756e2d64646e732d7068702f746f74616c)](https://github.com/Hill-98/aliyun-ddns-php/releases)[![PHP Version](https://camo.githubusercontent.com/6cf2f2f97e081c46b34205bc68760ba1c1229fe675eb149fd86e76d11ea73f20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f68696c6c2d39382f616c6979756e2d64646e732d706870)](https://packagist.org/packages/hill-98/aliyun-ddns-php)[![MIT](https://camo.githubusercontent.com/7d57e538f7bb4e848f24944a0b67c3280787e0d43cbab15a9868fc94eca87cfc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f48696c6c2d39382f616c6979756e2d64646e732d706870)](https://github.com/Hill-98/aliyun-ddns-php/blob/master/LICENSE)

[更新日志](https://github.com/Hill-98/aliyun-ddns-php/blob/master/Changelog.md)

如果你在寻找 2.0.0 版本之前的文档，请访问 [Wiki](https://github.com/Hill-98/aliyun-ddns-php/wiki) 。

简介
--

[](#简介)

它不只是 DDNS

它可以通过路由器/网关的 dnsmasq 将域名解析到本地 IP，实现本地 0 延迟响应解析。

鉴于安全性，它支持自动设置路由器/网关的防火墙规则，特别适合 IPv6 环境使用。

如果担心执行时发生错误，它支持通过电子邮件发送错误信息。

安装
--

[](#安装)

运行需求： [PHP](https://php.net) 8.0+

[点击这里](https://github.com/Hill-98/aliyun-ddns-php/releases/latest/download/aliyun-ddns-php.zip) 下载最新版本

配置
--

[](#配置)

复制`config.example.php`到`config.php`

编辑`config.php`

如需用路由器/网关功能，路由器必须支持 Luci RPC，且必须正确设置 `CONFIG_LUCI_RPC_URL`, `CONFIG_LUCI_USERNAME` 和 `CONFIG_LUCI_PASSWORD`

如需使用电子邮件发送错误，必须正确设置电子邮件配置项，且 `CONFIG_ERROR_MAIL` 为 `true`

使用
--

[](#使用)

支持 GET (POST) 和 CLI 方式运行

OpenWrt 触发执行：[文档](https://github.com/Hill-98/aliyun-ddns-php/blob/master/docs/Automation.md)

参数名必要说明备注domain√域名必须存在于你的 DNS 云解析ip√解析记录的 IP如果是 `ipv4` 或 `ipv6` 会自动获取对应公网 IPname√解析记录的主机记录local-ip×本地 IP使用路由器/网关的 dnsmasq 把解析域名指向本地 IPrule-name×防火墙规则名称自动更新路由器/网关的防火墙规则，防火墙规则配置详见 [文档](https://github.com/Hill-98/aliyun-ddns-php/blob/master/docs/FirewallRule.md)执行成功：HTTP 响应代码为 `200` 或 CLI 退出代码为 `0`

#### 示例：

[](#示例)

自动获取公网 IPv6 地址并解析到 test.example.com

**GET:** `http://aliddns.localhost/index.php?domain=example.com&name=test&ip=ipv6`

**CLI:** `php /opt/AliDDNS/index.php --domain example.com --name test --ip ipv6`

贡献
--

[](#贡献)

欢迎 [Fork](https://github.com/Hill-98/aliyun-ddns-php/fork) 本项目并提交 [PR](https://github.com/Hill-98/aliyun-ddns-php/pulls) 。

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 98.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~138 days

Total

3

Last Release

1554d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd01889be7a5d9550d41c1684ca28422d03c88f56bf90d90a439119b55585ad2?d=identicon)[Hill-98](/maintainers/Hill-98)

---

Top Contributors

[![Hill-98](https://avatars.githubusercontent.com/u/25147395?v=4)](https://github.com/Hill-98 "Hill-98 (61 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

aliyunddnsopenwrtphp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/hill-98-aliyun-ddns-php/health.svg)

```
[![Health](https://phpackages.com/badges/hill-98-aliyun-ddns-php/health.svg)](https://phpackages.com/packages/hill-98-aliyun-ddns-php)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

346132.9M112](/packages/google-cloud-core)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M18](/packages/pantheon-systems-terminus)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
