承接 centralnic-reseller/php-sdk 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

centralnic-reseller/php-sdk

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 codecov

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 examples folder that should help you with getting started.

e.g. examples/app_CNR.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

Environment variables (env.sh)

The devcontainer looks for an env.sh file in the workspace root and automatically sources it in two places:

  1. Every new integrated-terminal session — the file is sourced via ~/.zshenv so credentials are available as soon as you open a terminal, without a manual source env.sh.
  2. PHPUnit runs triggered from the VSCode UI — the PHPUnit wrapper script sources env.sh before invoking PHP, so IDE-triggered tests see the same variables as composer test does from the terminal.

env.sh is listed in .gitignore and will never be committed. Create it once in the workspace root with the variables you need — copy env.example.sh as a starting point.

Note

The auto-loading takes effect for new terminal sessions. If your terminal was already open when you created or updated env.sh, run source env.sh once in that session or open a new terminal.

Running the Demo Application

To run the demo application, follow these steps:

  1. Set Your Credentials: You need to ensure your credentials are available. The recommended approach inside the devcontainer is to create an env.sh file in the workspace root — see Environment variables (env.sh) for details. Alternatively, you can directly replace the credential placeholders inside the demo application file.

  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
    examples/app_CNR.php
    # internet.bs
    examples/app_IBS.php
    # Moniker
    examples/app_MONIKER.php
    

CI / Testing

CI is powered by reusable GitHub Actions workflows. The test matrix covers:

PHP Version Status
8.3
8.4
8.5

The matrix is configured via the repository variable RTLDEV_MW_CI_PHP_MATRIX.

Maintainers

License

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

centralnic-reseller/php-sdk 适用场景与选型建议

centralnic-reseller/php-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 40.57k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2021 年 12 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「api」 「registration」 「application」 「sdk」 「dns」 「domain」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 centralnic-reseller/php-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 centralnic-reseller/php-sdk 我们能提供哪些服务?
定制开发 / 二次开发

基于 centralnic-reseller/php-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

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