Download the PHP package hill-98/aliyun-ddns-php without Composer

On this page you can find all versions of the php package hill-98/aliyun-ddns-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aliyun-ddns-php

aliyun-ddns-php

Github Releases Github Releases Download PHP Version MIT

更新日志

如果你在寻找 2.0.0 版本之前的文档,请访问 Wiki 。

简介

它不只是 DDNS

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

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

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

安装

运行需求: PHP 8.0+

点击这里 下载最新版本

配置

复制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 触发执行:文档

参数名 必要 说明 备注
domain √ 域名 必须存在于你的 DNS 云解析
ip √ 解析记录的 IP 如果是 ipv4 或 ipv6 会自动获取对应公网 IP
name √ 解析记录的主机记录
local-ip × 本地 IP 使用路由器/网关的 dnsmasq 把解析域名指向本地 IP
rule-name × 防火墙规则名称 自动更新路由器/网关的防火墙规则,防火墙规则配置详见 文档

执行成功: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 本项目并提交 PR 。


All versions of aliyun-ddns-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
alibabacloud/alidns Version ^1.8
guzzlehttp/guzzle Version ^7.3
monolog/monolog Version ^2.2
pear/net_dns2 Version ^1.5
swiftmailer/swiftmailer Version ^6.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hill-98/aliyun-ddns-php contains the following files

Loading the files please wait ...