Download the PHP package caiyun/micro without Composer

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

Caiyun Micro

适用于 PHP 8.3+、Laravel 13.x 的微服务基础设施包,提供可插拔的服务发现与服务注册:

业务侧通过服务别名调用下游,例如 Micro::for('agent')->post(...),无需关心实例 IP。

安装

发布配置:

使用 Zookeeper 驱动时需安装 PECL 扩展:

快速配置

将 MICRO_DRIVER 设为 nacos / consul / etcd / zookeeper / polaris 即可切换注册中心。

static 驱动请在 config/micro.php 中配置 endpoints:

用法

服务发现 + HTTP 调用

手动发现

服务注册 / 心跳 / 注销

或代码中:

生产环境可将 MICRO_AUTO_REGISTER=true,并配合调度周期性执行 micro:heartbeat(临时实例 / TTL / Lease 需要心跳保活)。

建议在 routes/console.php 或 Scheduler 中:

负载均衡

MICRO_LOAD_BALANCER 支持:

扩展 Driver

开发


All versions of micro with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-json Version *
guzzlehttp/guzzle Version ^7.0
illuminate/cache Version ^13.0
illuminate/console Version ^13.0
illuminate/contracts Version ^13.0
illuminate/http Version ^13.0
illuminate/log Version ^13.0
illuminate/support Version ^13.0
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 caiyun/micro contains the following files

Loading the files please wait ...