pinga/desec-php
最新稳定版本:v0.5
Composer 安装命令:
composer require pinga/desec-php
包简介
A PHP library to interact with the DeSec API
README 文档
README
This is a PHP library for interacting with the deSEC API. deSEC is a free DNS anycast hosting service designed with security in mind. With this library, you can easily manage your domains, DNS records, and more.
Installation
Use Composer to install the deSEC PHP library.
composer require pinga/desec-php
Usage
<?php require 'vendor/autoload.php'; $api = new \deSEC\deSEC("your-api-token"); // Replace with your actual API token try { $response = $api->getDomain('example.com'); print_r($response); } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; }
Available Methods
Here are some of the available methods in this library:
- getDomain($name)
- createDomain($name)
- deleteDomain($name)
- exportZonefile($name)
- createRRset($name, $subname, $type, $ttl, $records)
- getRRsets($name)
- getRRset($name, $subname, $type)
- modifyRRset($name, $subname, $type, $ttl, $records)
- deleteRRset($name, $subname, $type)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License - see the LICENSE file for details.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-17