PHP code example of gotcreations / laravel-namecheap

1. Go to this page and download the library: Download gotcreations/laravel-namecheap 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/ */

    

gotcreations / laravel-namecheap example snippets




return [
    'apiUser' => env('NC_API_USER', 'username'), //Your namecheap username
    'apiKey' => env('NC_API_KEY', 'key'), //Your namecheap API Key
    'clientIp' => env('NC_API_CLIENT_IP', '127.0.0.1'),
    'enableSandbox' => env('NC_API_SANDBOX', true), //For production env disable it
    'returnType' => 'json', //Or array, xml, string 
];
shell
php artisan vendor:publish --provider="GotCreations\Namecheap\NamecheapServiceProvider" --tag="config"