Download the PHP package bklab/think-nacos-sdk without Composer

On this page you can find all versions of the php package bklab/think-nacos-sdk. 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 think-nacos-sdk

ThinkPHP Nacos 2.x 扩展

ThinkPHP Nacos 2.x 扩展

1. 安装

1.1 命令行部署

composer require bklab/think-nacos-sdk

还未发布,暂时无法使用

1.2 手动部署

composer.json 中添加如下配置

1.2.1. 仓库

1.2.2. 依赖

2. 配置

2.1. 自动注册

ThinkPHP框架在应用初始化时

2.1.1. 参考文档

ThinkPHP 文档 -> 架构 -> 事件 -> 内置事件

2.1.2. 正确填写相关配置

在config/nacos.php 中正确填写服务器和Nacos的相关信息

2.1.3. 在app/event.php中填写

2.2. 手动注册

2.2.1. 通过HTTP注册

2.2.2. 当填写配置文件时

2.2.3. 动态配置

2.3. 监听配置更改

2.3.1 配置监听事件

2.3.2 在单独一个线程中执行

启动方式:

可以在启动时,可以通过http调用一个地址来实现配置的加载。
此接口需要设置不自动关闭,否则会在自动关闭时停止监听。
此接口需要自行实现,不在本扩展内实现。

3. 目录结构

4. 其他

任何BUG或者建议,欢迎提交issue或者PR。


All versions of think-nacos-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
topthink/framework Version ^8.0
ext-json Version *
ext-curl Version *
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 bklab/think-nacos-sdk contains the following files

Loading the files please wait ....