From 23e731cb5428226a752836094aea89a781cb4c93 Mon Sep 17 00:00:00 2001 From: Andrew Leslie Date: Tue, 12 Jan 2016 15:20:00 -0500 Subject: [PATCH 1/2] Changing repository url to github (current repository url requires auth). --- readme.md | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/readme.md b/readme.md index ce66186..405d664 100644 --- a/readme.md +++ b/readme.md @@ -8,10 +8,10 @@ Add this on your `composer.json`: "repositories": [ { "type": "vcs", - "url": "https://git.coreproc.ph/coreproc/enom-sdk-php.git" + "url": "https://github.com/CoreProc/enom-sdk-php.git" } ] - + # Usage ## Laravel 5.x users @@ -20,27 +20,27 @@ Add this line in the `providers` array in `config/app.php`: 'providers' => [ // Other Service Providers - + Coreproc\Enom\Providers\EnomServiceProvider::class, ], - + Add these lines in the `facades` array in `config/app.php`: 'facades' => [ // Other Facades - + 'Tld' => Coreproc\Enom\Facades\Tld::class 'Domain' => Coreproc\Enom\Facades\Domain::class, ], - + Then run this command to publish the config file: php artisan vendor:publish --provider="Coreproc\Enom\Providers\EnomServiceProvider" - + Set up your credentials on the published file `config/enom.php`: env('ENOM_USER_ID', ''), 'password' => env('ENOM_PASSWORD', '') @@ -50,9 +50,9 @@ You now have access to the facades `Tld` and `Domain` which you can use like so: $tlds = Tld::getList(); $domains = Domain::getList(); - -No need to manually set up the Enom client - it's already done. Please see methods of each class below. - + +No need to manually set up the Enom client - it's already done. Please see methods of each class below. + ## Vanilla PHP Set up the client @@ -62,56 +62,56 @@ Set up the client ## TLDs $tld = new Tld($enom); - + try { $tld->authorize(['com', 'net', 'io']); } catch (Coreproc\Enom\EnomApiException $e) { var_dump($e->getErrors()); } - + ## Methods Authorize TLDs authorize(array $tlds) - + Remove TLDs remove(array $tlds) - + Get TLD list getList() - + ## Domains $domain = new Domain($enom); - + try { $domain->check('example', 'com'); } catch (Coreproc\Enom\EnomApiException $e) { var_dump($e->getErrors()); } - + ## Methods check($sld, $tld) - + getNameSpinner($sld, $tld, $options = []) - + getExtendedAttributes($tld) - + purchase($sld, $tld, $extendedAttributes = []) - + getStatus($sld, $tld, $orderId) - + getList() - + getInfo($sld, $tld) - + setContactInformation($sld, $tld, $contactInfo = []) - + getContactInformation($sld, $tld) - + getWhoIsContactInformation($sld, $tld) From 313090dc6b0440537c5ef7cd2dc6c2b6cb7fba95 Mon Sep 17 00:00:00 2001 From: Andrew Leslie Date: Tue, 12 Jan 2016 15:23:59 -0500 Subject: [PATCH 2/2] Fixing package name. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 405d664..723d986 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ Add this on your `composer.json`: "require": { - "coreproc/enom-sdk-php": "dev-master" + "coreproc/enom-sdk": "dev-master" }, "repositories": [ {