dnic/qdns 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

dnic/qdns

最新稳定版本:1.0.2

Composer 安装命令:

composer require dnic/qdns

包简介

A Libary for working with PowerdnsAPI

README 文档

README

This is a very simple SDK, please keep in mind that this SDK has only the most necessary functions to work successfully with the api of Powerdns. It works with all types supported by Powerdns. If you have any questions, feel free to contact me

Install in your Project:

composer require dnic/qdns

Use the Libary:

List all Zones

<?php
require_once 'vendor/autoload.php';
use Qdns\ApiClient;

$client = new ApiClient('your_powerdns_apikey','your_powerdnsurl_with_port');
echo $client->zone()->listZones();

List a single Zone

<?php
require_once 'vendor/autoload.php';
use Qdns\ApiClient;

$client = new ApiClient('your_powerdns_apikey','your_powerdnsurl_with_port');
echo $client->zone()->listZone('example.com');

Add Record to Zone

<?php
require_once 'vendor/autoload.php';
use Qdns\ApiClient;

$client = new ApiClient('your_powerdns_apikey','your_powerdnsurl_with_port');
echo $client->record()->addRecord('example.com', 'test.example.com', 'A', 60,'192.168.178.9');

Delete Record from Zone

<?php
require_once 'vendor/autoload.php';
use Qdns\ApiClient;

$client = new ApiClient('your_powerdns_apikey','your_powerdnsurl_with_port');
echo $client->record()->deleteRecord('example.com', 'test.example.com', 'A');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-02