2017 © Pedro Peláez
 

library laravel-godaddy-domain

dynamic map your ip and domain's record

image

y2468101216/laravel-godaddy-domain

dynamic map your ip and domain's record

  • Friday, March 2, 2018
  • by y2468101216
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Godaddy Domain

Status

Build Status , (*1)

require

laravel 5 and php 7.1, (*2)

Introduce

Feel upset for static ip change to effect your domain record failure, Use this!, (*3)

Install

Install via composer, (*4)

composer install y2468101216/laravel-godaddy-domain

add service provider to config/app.php in providers block (laravel 5.4 or lower need), (*5)

Y2468101216\Godaddy\DomainServiceProvider::class

publish config, (*6)

php artisan vendor:publish \
 --provider="Y2468101216\Godaddy\DomainServiceProvider"

add below line in .env, (*7)

GODADDY_KEY=your-key
GODADDY_SECRET=your-sercet
GODADDY_DOMAIN=your.domain

Config

The config data order by : options > env > config > build-in value, (*8)

Usage options

php artisan godaddy-domain {--domain=} {--type=} {--name=} {--value=}

The option domain is you bought from godaddy, (*9)

The option type is DNS record type, see : List of DNS record types, (*10)

The option name is your subdomain., (*11)

The option value is DNS record value., (*12)

Usage env

add below line in .env, (*13)

GODADDY_RECORD_TYPE=your_dns_type
GODADDY_RECORD_NAME=your_dns_name
GODADDY_RECORD_VALUE=your_dns_value

If your use config cache, run, (*14)

php artisan config:cache

Usage config

you can set your custom default value in config/godaddy.php, like below, (*15)

<?php

return [
    'key' => env('GODADDY_KEY', 'your-key'),
    'secret' => env('GODADDY_SECRET', 'your-serect'),
    'domain' => env('GODADDY_DOMAIN', 'your-domain'),
    'type' => env('GODADDY_RECORD_TYPE', 'your-dns-record-type'),
    'name' => env('GODADDY_RECORD_NAME', 'your-dns-record-name'),
    'value' => env('GODADDY_RECORD_VALUE', 'your-dns-record-value'),
];

Usage build-in

If your don't set anything, default will use build-in value or throw error below :, (*16)

  • GODADDY_KEY => throw error messsage
  • GODADDY_SECRET => throw error messsage
  • GODADDY_DOMAIN => throw error messsage
  • GODADDY_RECORD_TYPE => "A"
  • GODADDY_RECORD_NAME => "www"
  • GODADDY_RECORD_VALUE => default is your vps ip, get from ipinfo.io/ip

Feature

  1. auto to buy domain that your don't have, but available to buy
  2. develop no-laravel version
  3. move command to class, let it can be extend.

License

MIT, (*17)

The Versions

02/03 2018

dev-master

9999999-dev

dynamic map your ip and domain's record

  Sources   Download

MIT

The Requires

 

The Development Requires

by yun