diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f45219c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/vendor/ +/.idea \ No newline at end of file diff --git a/README.md b/README.md index de191c6..11e1d5e 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,18 @@ Полезно для автоматизации, если у вас много доменов/поддоменов. +## Установка + +```shell +composer require ch1p/php-fastdns +``` + ## Использование ```php +use ch1p\FastDNS; +use ch1p\FastDNSException; + $fastdns = new FastDNS(); try { // авторизуемся diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..70a1279 --- /dev/null +++ b/composer.json @@ -0,0 +1,21 @@ +{ + "name": "ch1p/php-fastdns", + "description": "FastVPS DNS API Client", + "type": "library", + "license": "BSD-2c", + "authors": [ + { + "name": "Evgeny Zinoviev", + "email": "me@ch1p.io" + } + ], + "require": { + "ext-curl": "*", + "ext-json": "*" + }, + "autoload": { + "psr-4": { + "ch1p\\": "src/" + } + } +} diff --git a/FastDNS.php b/src/FastDNS.php similarity index 99% rename from FastDNS.php rename to src/FastDNS.php index f7c9736..7ee38cc 100644 --- a/FastDNS.php +++ b/src/FastDNS.php @@ -1,5 +1,7 @@