Download the PHP package caobowen/kimi-nexus without Composer

On this page you can find all versions of the php package caobowen/kimi-nexus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package kimi-nexus

Kimi Nexus

Kimi Nexus 是一个用于公司内部多个项目快速对接第三方 API 的 Composer 库。

目标

安装(作为库开发)

安装(在其他项目中使用)

说明:首次发布前可先使用 dev-main。

目录结构

快速开始(Business.govt.nz)

Business.govt.nz 环境变量

建议在 .env 中配置以下变量。

必填变量:

选填变量:

说明:

Business.govt.nz 调用指引

  1. 在环境变量中设置 key(至少 BUSINESS_GOVTNZ_PRIMARY_KEY)。
  2. 根据环境设置 BUSINESS_GOVTNZ_BASE_URI:
    • 生产:https://api.business.govt.nz/
    • Sandbox:https://api.business.govt.nz/sandbox
  3. 用 BusinessGovtNzGateway::make($config) 创建客户端。
  4. 先调用 searchEntitiesByName() 检索 NZBN,再调用 viewEntityByNzbn() 拉实体详情。
  5. 若返回 401 missing subscription key,优先检查:
    • key 是否为空
    • BASE_URI 与 key 所属环境是否匹配(生产 key 对生产地址,sandbox key 对 sandbox 地址)

最小调用示例(搜索 + 详情):

已提供的 Business.govt.nz 入口

ABN Lookup(Australia ABR)

可选环境变量示例:

说明:ABN_LOOKUP_BASE_URI 建议使用 https://abr.business.gov.au/json/(末尾带 /)。

已提供入口:

后续建议


All versions of kimi-nexus with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
guzzlehttp/guzzle Version ^7.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package caobowen/kimi-nexus contains the following files

Loading the files please wait ...