Download the PHP package easyops-cn/easykin without Composer

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

easykin

Build Status

这是一个简单的Zipkin PHP库,根据 官方概念文档 实现,主要用于PHP实现的web服务链路追踪,并针对B3 Propagation封装了专用的Trace类,方便Http服务的接入。

Quick Start

初始化

定义服务基础信息:

定义trace信息上报方式,提供FileLogger和HttpLogger两种方式,可以基于Logger接口实现更多上报方式:

初始化Trace

对于前端(链路的源头):

对于后端,需要提取请求Header中的B3信息:

也可以使用封装好的HttpTrace类,前后端调用方式都一致:

以上动作均需在你的服务程序入口处尽早完成,在程序结尾处执行上报方法:

注意:如果服务程序因为异常而中断,EasyKin依然会上报trace信息

新建一个Span

当你的服务发起请求时,需要新建一个Span来承载该请求的信息:

然后执行你的请求逻辑。当请求结果返回后,应尽快执行:

以便准确记录该请求的结束时间。

执行上报

当服务应用程序处理完一次请求后,需要执行上报动作:


All versions of easykin with dependencies

PHP Build Version
Package Version
Requires php Version >=7.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 easyops-cn/easykin contains the following files

Loading the files please wait ....