承接 fcosantos/cloudflare-dns 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fcosantos/cloudflare-dns

最新稳定版本:1.0.0

Composer 安装命令:

composer require fcosantos/cloudflare-dns

包简介

A library for updating DNS records via the Cloudflare API

README 文档

README

A library for updating DNS records via the Cloudflare API.

Installation

Install the package via Composer:

composer require fcosantos/cloudflare-dns

Usage

<?php
require 'vendor/autoload.php';

use fcosantos\CloudflareDns\CloudflareDNSUpdater;

// Instantiate the updater with your Cloudflare credentials and base domain
$updater = new CloudflareDNSUpdater(
    'your_zone_id', 
    'your_email@example.com', 
    'your_api_key', 
    'example.com'
);

// Update a specific DNS record for "subdomain.example.com" (default type "A")
$updater->updateDns('subdomain', 'record_id_for_subdomain', 120, true);

// Update a DNS record of type CNAME for "www.example.com"
$updater->updateDns('www', 'record_id_for_www', 120, true, 'CNAME');

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-09