定制 coinrequest/unstoppable-domains-php-api 二次开发

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

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

coinrequest/unstoppable-domains-php-api

最新稳定版本:0.3.1

Composer 安装命令:

composer require coinrequest/unstoppable-domains-php-api

包简介

PHP API client for Unstoppable Domains

README 文档

README

PHP package for the Unstoppable Domains API.

Please note the following: only the 'Stripe checkout flow' is implemented for now. This means you can only order domains if you have the Stripe payment type enabled.

Getting Started

Run the following command to install this package into your project.

composer require coinrequest/unstoppable-domains-php-api 

Prerequisites

You will need Composer to install this package.

Installing

After installing this package with Composer, create a new Unstoppable Domains instance. And include your Reseller ID and API key. Please contact Unstoppable Domains to obtain your private credentials.

Something like this:

$unstoppableDomains = new UnstoppableDomains('yourresellerid', 'yourpersonalapikey');

And call the desired endpoint

$unstoppableDomains->domainsEndpoint()->getDomain($domainName);

The current implemented endpoints are:

  • GET /domains/$domainName
  • GET /users/$emailAddress
  • POST /users/$emailAddress/orders (STRIPE ONLY)
  • GET /users/$emailAddress/orders/$orderId

Documentation of the endpoints will be available online at a later moment. Please check the code for documentation and example requests and responses. You can always check the docs and examples on the Unstoppable Domains docs website.

Running the tests

First, create a .env file and set the following values:

  • UNSTOPPABLE_DOMAINS_TEST_RESELLER_ID: A valid UD Reseller ID. Preferably a test Reseller ID
  • UNSTOPPABLE_DOMAINS_TEST_API_KEY : A valid UD API Key. Preferably a test API key
  • STRIPE_TEST_API_KEY : A test (<- TEST) Stripe API key. Probably starts with 'pk_test_'
  • ORDER_CONFIRMATION_EMAIL_ADDRESS : An email address. If you want to receive the confirmation email address, please use your own email address.

Please see the .env.example for the template.

Run the tests in the Tests directory with PHPUnit.

Built With

Contributing

Please help us to develop this package. Every input and/or feedback is really appreciated!

License

This project is licensed under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-30