centralnic-reseller/php-sdk 问题修复 & 功能扩展

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

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

centralnic-reseller/php-sdk

最新稳定版本:v13.0.1

Composer 安装命令:

composer require centralnic-reseller/php-sdk

包简介

API connector library for the insanely fast Team Internet Backend APIs (CentralNic Reseller, Internet.bs, Moniker)

README 文档

README

semantic-release Build Status Packagist PHP from Packagist License: MIT PRs welcome

This module is a connector library for the insanely fast CNIC Backend APIs (CentralNic Reseller, internet.bs, moniker). Do not hesitate to contact us in case of questions.

Resources

Usage

composer require centralnic-reseller/php-sdk

Find a demo app for the Brand of choice in the tests folder that should help you with getting started.

e.g. tests/CNR/app.php etc.

Dev Container

If you want to contribute, we recommend using Visual Studio Code and to follow the below setup instructions:

  • Add an entry in your hosts file: 127.0.0.1 devsdk.centralnicreseller.net

PHP SDK Data can be accessed via apache server at this url: http://devsdk.centralnicreseller.net

Running the Demo Application

To run the demo application, follow these steps:

  1. Set Your Credentials: You need to ensure your credentials are available. You can do this in two ways:

    • Directly replace the credentials within the application file.
    • Alternatively, set the environment variables required for the CNR test app:
      # CentralNic Reseller
      export RTLDEV_MW_CI_USER_CNR=<your-username>
      export RTLDEV_MW_CI_USERPASSWORD_CNR=<your-password>
      # internet.bs
      export RTLDEV_MW_CI_USER_IBS=<your-username>
      export RTLDEV_MW_CI_USERPASSWORD_IBS=<your-password>
      # moniker
      export RTLDEV_MW_CI_USER_MONIKER=<your-username>
      export RTLDEV_MW_CI_USERPASSWORD_MONIKER=<your-password>
  2. Execute the Demo: Once the credentials are configured, run the appropriate demo command:

    Run the below npm scripts (or execute the related commands covered in package.json):

    # CentralNic Reseller
    npm run test-demo-cnr
    # internet.bs
    npm run test-demo-ibs
    # Moniker
    npm run test-demo-moniker
  3. Update Demo Contents: If you need to modify the demo contents, the relevant files are located at:

    # CentralNic Reseller
    tests/CNR/app.php
    # internet.bs
    tests/IBS/app.php
    # Moniker
    tests/MONIKER/app.php
    

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-09