2017 © Pedro Peláez
 

package laravel-godaddy

An easy way to search for and purchase domains from GoDaddy.com

image

betapeak/laravel-godaddy

An easy way to search for and purchase domains from GoDaddy.com

  • Monday, November 13, 2017
  • by ymslavov
  • Repository
  • 1 Watchers
  • 9 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 44 % Grown

The README.md

Latest Stable Version License Total Downloads, (*1)

Laravel GoDaddy

Easy and simple GoDaddy API service for your Laravel project

$availability = GoDaddy::available('my-dream-website.com');

if($availability->getAvailable() === true){
    GoDaddy::purchase('my-dream-website.com');
}

Installation

This package requires that you are using Laravel 5.3 or above., (*2)

You can install it with composer like so:, (*3)

composer require betapeak/laravel-godaddy

If you are using Laravel 5.3 or 5.4, you will need to add the service provider and facade to your /config/app.php:, (*4)

/config/app.php

    ...

    'providers' => [
        ...,
        BetaPeak\GoDaddy\GoDaddyServiceProvider::class
    ],

    'aliases' => [
        ...,
        'GoDaddy' => BetaPeak\GoDaddy\GoDaddyFacade::class
    ],
    ...


Finally, you need to publish the config file:, (*5)

php artisan vendor:publish --provider="BetaPeak\GoDaddy\GoDaddyServiceProvider"

and you must enter your key and secret which can be generated from GoDaddy's website. The config file is located at /config/laravel-godaddy.php., (*6)

NOTE: If you are planning to use the package to purchase domains in production, make sure you change your company details inside the config file as well. You need to generate production API keys from the reseller website., (*7)

Example usage

Checking if a domain is available for purchase

    $result = GoDaddy::available('example.com');

    if($result->getAvailable() === true)
    {
        \\ Yey, ready to be bought!
    } else {
        \\ Not available
    }

Purchasing a domain

GoDaddy::purchase('example.com' );

Purchasing a domain for two years

GoDaddy::purchase('example.com', 2);

Purchasing a domain with automatic renewal (defaults to false)

GoDaddy::purchase('example.com', 1, true);

Purchasing a domain as a reseller

GoDaddy::purchase('example.com', 1, false, 'some-x-seller-id');

Full docs

A list of all available methods and models can be found here., (*8)

The Versions

13/11 2017

dev-master

9999999-dev https://github.com/betapeak/laravel-godaddy

An easy way to search for and purchase domains from GoDaddy.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yasen Slavov

laravel api godaddy

07/11 2017

1.0.0

1.0.0.0 https://github.com/betapeak/laravel-godaddy

An easy way to search for and purchase domains from GoDaddy.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yasen Slavov

laravel api godaddy

07/11 2017

0.1.1

0.1.1.0 https://github.com/betapeak/laravel-godaddy

An easy way to search for and purchase domains from GoDaddy.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yasen Slavov

laravel api godaddy

07/11 2017

0.1.0

0.1.0.0 https://github.com/betapeak/laravel-godaddy

An easy way to search for and purchase domains from GoDaddy.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yasen Slavov

laravel api godaddy