https://github.com/getpinga/desec-php
desec-php is a robust and secure PHP library for managing your DNS records on deSEC, a free DNS anycast hosting service. Easily handle domains, RRsets and more with our intuitive methods and clear documentation.
https://github.com/getpinga/desec-php
anycast api-client desec dns php php-library php8
Last synced: 8 months ago
JSON representation
desec-php is a robust and secure PHP library for managing your DNS records on deSEC, a free DNS anycast hosting service. Easily handle domains, RRsets and more with our intuitive methods and clear documentation.
- Host: GitHub
- URL: https://github.com/getpinga/desec-php
- Owner: getpinga
- License: mit
- Created: 2023-07-17T22:43:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-17T22:51:44.000Z (almost 3 years ago)
- Last Synced: 2025-07-16T14:04:55.670Z (11 months ago)
- Topics: anycast, api-client, desec, dns, php, php-library, php8
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# desec-php
This is a PHP library for interacting with the [deSEC](https://desec.io/) 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](https://getcomposer.org/) to install the deSEC PHP library.
```bash
composer require pinga/desec-php
```
## Usage
```php
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.