PHP code example of simon80119 / laravel-godaddy

1. Go to this page and download the library: Download simon80119/laravel-godaddy library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

simon80119 / laravel-godaddy example snippets


/config/app.php

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



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

    $result = GoDaddy::available('example.com');
    
    if($result->getAvailable() === true)
    {
        \\ Yey, ready to be bought!
    } else {
        \\ Not available
    }