kregel/namecheap-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

kregel/namecheap-sdk

Composer 安装命令:

composer require kregel/namecheap-sdk

包简介

Namecheap API

README 文档

README

Currently underdevelopment, and open to new PRs and issues.

Installation

You can install the package via composer:

composer require kregel/namecheap-sdk

Usage

use Kregel\Namecheap\Api;
use Kregel\Namecheap\Config;

$config = new Config($apiUser, $apiKey, $username, $clientIp);

$client = new Guzzlehttp\Client([
    'base_uri' => Api::ENV_SANDBOX
]);

$api = new Api($config, $client)

$myDomains = $api->domains()
    ->getList();
// Do stuff with my domains.

Testing

composer test

That will also generate code coverage which you can see in the build/coverage directory.

Planned or available features. Right now I will only be adding in features that I need personally. If there is something that you need, please make a PR for it.

Note: Due to Namecheaps... Odd way of naming and doing things for their docs this feature/roadmap list will follow the format [Command - description]

Domain Features

  • domains.getList - A list of domains for the authenticated user
  • domains.getContacts - The contact information of a domain, usually the information discovered through Whois.
  • domains.create - Register a new domain name
  • domains.getTldList - A list of all TLDS that can be registered on Namecheap
  • domains.setContacts - Sets the whois information for a domain
  • domains.check - Checks to see if a domain is available.
  • domains.reactivate - Reactivates an expired domain
  • domains.renew - Renews an expiring domain
  • domains.getRegistrarLock - Gets the RegistrarLock status of a domain (used for transferring domains out of/to a registrar)
  • domains.setRegistrarLock - Sets the status of a domain
  • domains.getInfo - Returns information about a requested domain.
DNS
  • domains.dns.setDefault - Sets the domain servers to the Namecheap default DNS servers. (Which is required for using their DNS editing interface)
  • domains.dns.setCustom - Sets the domain servers
  • domains.dns.getList - Gets the DNS servers for a domain
  • domains.dns.getHosts - Gets the DNS host record settings for a domain
  • domains.dns.getEmailForwarding - Gets the email forward settings
  • domains.dns.setEmailForwarding - sets the email forward settings
  • domains.dns.setHosts - Set the host records for a domain
NS
  • domains.ns.create - Creates a new nameserver
  • domains.ns.delete - deletes a nameserver
  • domains.ns.getInfo - Gets the info about a nameserver
  • domains.ns.update - Updates the IP of a nameserver
Transfer
  • domains.transfer.create - Transfers a domain to Namecheap. You can only transfer .biz, .ca, .cc, .co, .co.uk, .com, .com.es, .com.pe, .es, .in, .info, .me, .me.uk, .mobi, .net, .net.pe, .nom.es, .org, .org.es, .org.pe, .org.uk, .pe, .tv, .us domains through API
  • domains.transfer.getStatus - Get the status of a transfer
  • domains.transfer.updateStatus - Update the status of a transfer
  • domains.transfer.getList - get the list of domain transfers.
SSL

As of this moment I am not supporting SSL through NC because of projects like LetsEncrypt, where you can get free SSL certs.

Users

  • users.getPricing - Returns the pricing info for a requested product
  • users.getBalances - Get information about funds on a users account.
  • users.changePassword - Changes the password for a user
  • users.update - Updates user account information
  • users.createaddfundrequest - Creates a request to add funds for a user through a credit card
  • users.getAddFundsStatus - Gets the status of a funds transfer
  • users.create - Create a new namecheap account under the APIUser
  • users.login - validates a username/password
  • users.resetPassword - Sends a reset password link to the users email.
Address
  • users.address.create - creates a new address for a user
  • users.address.delete - deletes an address for a user
  • users.address.getInfo - gets information about an address
  • users.address.getlist - gets a list of address for the user
  • users.address.setDefault - Set the default address
  • users.address.update - Updates a particular address

WhoIsGuard

  • whoisguard.changeemailaddress - Change the WhoIsGuard email address
  • whoisguard.enable - enable whois guard
  • whoisguard.disable - disable whoisguard
  • whoisguard.unallot - unallot whoisguard
  • whoisguard.discard - discards whoisguard
  • whoisguard.allot - allots whoisguard
  • whoisguard.getList - Gets a list of WhoisGuard privacy protection
  • whoisguard.renew - Renews WhoisGuard privacy protection

License The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2018-10-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固