Download the PHP package alibaba/nacos without Composer

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

阿里巴巴nacos配置中心-PHP客户端

Nacos配置中心的PHP客户端,更多关于Nacos配置中心的介绍,可以查看Nacos配置中心Wiki

特性

  1. 容错兜底
  2. 容易上手
  3. 技术支持,有问题可加作者微信: suxiaolinKing

开发计划

composer安装

使用crontab拉取配置文件

定时1分钟拉取一次

拉取到的配置文件路径:当前工作目录/nacos/config/dev_nacos/snapshot/LARAVEL

配置文件保存的工作目录可以通过下面命令修改

长轮询拉取配置文件

事件监听器

配置兜底方案

将兜底的配置文件放入下面的路径里

如果有给$tenant设置值,文件路径这样计算

工作目录/nacos/config/{$env}_nacos/config-data-{$tenant}/{$dataId}

否则

工作目录/nacos/config/{$env}_nacos/config-data/{$dataId}

nacos会在无法从配置中心查询配置文件时将读取上面的配置文件

Dummy模式(本地开发不走配置中心)

配置环境变量NACOS_ENV=local再启动项目

贡献者 ✨

Thanks goes to these wonderful people:


fatrbaby

📖

TELstatic

📖

wujunze

📖

ifcute

📖

RobberPhex

📖

Contributions of any kind are welcome!

感谢nacos团队赠送的纪念杯


All versions of nacos with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.3|^7.0
monolog/monolog Version ^1.24|^2.0
ext-json Version *
ext-grpc Version *
ext-protobuf Version *
grpc/grpc Version ^1.38
google/protobuf Version ^3.17
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 alibaba/nacos contains the following files

Loading the files please wait ....