定制 lumo-comm/laravel-godaddy 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lumo-comm/laravel-godaddy

Composer 安装命令:

composer require lumo-comm/laravel-godaddy

包简介

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

README 文档

README

Latest Stable Version License Total Downloads

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.

You can install it with composer like so:

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:

/config/app.php

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


Finally, you need to publish the config file:

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.

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.

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.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 19
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固