Download the PHP package xhtkyy/hyperf-tools without Composer

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

xhtkyy/hyperf-tools

快速开始

composer require xhtkyy/hyperf-tools

发布配置

php bin/hyperf.php vendor:publish xhtkyy/hyperf-tools

更新

20230602

20230536

基础

容器

异常

异常是需要规范的,这里举例了 NotFoundException(找不到资源)、InvalidArgumentException(无效参数异常) 其他自定义异常 继承 Xhtkyy\HyperfTools\App\Exception\AppException::class 即可轻松捕抓

CURD

将基础的CURD封装 继承 Xhtkyy\HyperfTools\CURDRepo\CURDRepo 即可,如

服务注册/发现

1、发布配置

2、服务注册

自动发现配置中server_name配置的服务名称,在路由中对应服务名称,如以下 "grpc"

3、服务发现

使用继承 \Xhtkyy\HyperfTools\GrpcClient\BaseGrpcClient 即可完成服务自动发现 可在配置中配置发现算法 默认轮询

链路追踪

使用 Xhtkyy\HyperfTools\Grpc\Middleware\GrpcTraceMiddleware 作用于grpc服务路由即可完成 grpc链路追踪


All versions of hyperf-tools with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
amphp/hpack Version ^3.1
dtm/dtm-client Version ^0.3.2
hyperf/command Version ^3.0
hyperf/db-connection Version ~3.0.0
hyperf/di Version 3.0.*
hyperf/event Version ~3.0.0
hyperf/framework Version 3.0.*
hyperf/grpc-client Version ~3.0.0
hyperf/grpc-server Version ~3.0.0
hyperf/http-server Version ~3.0.0
hyperf/load-balancer Version ~3.0.0
hyperf/rpc-server Version ~3.0.0
hyperf/service-governance Version ~3.0.0
hyperf/service-governance-consul Version ~3.0.0
hyperf/service-governance-nacos Version ~3.0.0
hyperf/tracer Version ~3.0.0
jonahgeorge/jaeger-client-php Version ^1.4
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 xhtkyy/hyperf-tools contains the following files

Loading the files please wait ....