Download the PHP package ccheng/event-manager without Composer

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

Event manager for Yii2

Event manager By Biz

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

执行数据迁移以添加表结构:

添加事件管理模块

事件列表路由:

事件时间线路由

组件配置信息(图像上传与事件级别与事件相关系统依赖) 配置信息需配置在 params 中,返回未配置信息读取的回调函数

添加事件组件接口

事件组件接口文档

一、事件添加
接口要求项
Http请求方式 POST
URL /event/notifying
参数 类型 必须 说明 备注
from_system string 系统来源
type string 请求类型 固定值: EventNotify
key string 请求key 自行定义
data string 请求参数
参数 类型 必须 说明 备注
event_name string 事件标题
event_content string 事件内容 富文本编辑器生成的HTML
event_date string 事件发生的日期时间 例如:2019-10-01 10:02:05
event_author string 事件内容作者 作者名字
event_level string 事件级别 可选值:success-一般,info-严重,warning-重大,error-灾难
event_tags string 事件标签 标签用,分隔
参数 类型 必须 说明 备注
code int 返回码 0:成功,1:失败
message string 说明
data object 说明 事件详情
二、事件更新
接口要求项
Http请求方式 POST
URL /event/update?id=xxx
参数 类型 必须 说明 备注
from_system string 系统来源
type string 请求类型 固定值: EventNotify
key string 请求key 自行定义
data string 请求参数
参数 类型 必须 说明 备注
event_name string 事件标题
event_content string 事件内容 富文本编辑器生成的HTML
event_date string 事件发生的日期时间 例如:2019-10-01 10:02:05
event_from_system string 事件来源系统 固定值:qnn
event_author string 事件内容作者 作者名字
event_level string 事件级别 可选值:success-一般,info-严重,warning-重大,error-灾难
event_tags string 事件标签 标签用,分隔
参数 类型 必须 说明 备注
code int 返回码 0:成功,1:失败
message string 说明
data object 说明 事件详情
三、事件查询
接口要求项
Http请求方式 GET
URL /event/view?id=xxx
参数 类型 必须 说明 备注
code int 返回码 0:成功,1:失败
message string 说明
data object 说明 事件详情

All versions of event-manager with dependencies

PHP Build Version
Package 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 ccheng/event-manager contains the following files

Loading the files please wait ....