php-fastdns/README.md
2022-12-11 02:09:15 +03:00

42 lines
1002 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# php-fastdns
Клиент к FastVPS DNS API. Позволяет создавать, редактировать, удалять домены и записи.
Полезно для автоматизации, если у вас много доменов/поддоменов.
## Установка
```shell
composer require ch1p/php-fastdns
```
## Использование
```php
use ch1p\FastDNS;
use ch1p\FastDNSException;
$fastdns = new FastDNS();
try {
// авторизуемся
$fastdns->auth('ВАШ ТОКЕН');
// готово
// для примера, получим список доменов
$domains = $fastdns->getDomains();
var_dump($domains);
} catch (FastDNSException $e) {
// что-то пошло не так
}
```
## Документация
Все доступные методы и параметры смотрите в классе, он простой.
А вот OpenAPI спека: https://f.ch1p.io/1pCMAoat/fast-api.yaml
## Лицензия
BSD-2c