承接 linkorb/data-router 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

linkorb/data-router

Composer 安装命令:

composer require linkorb/data-router

包简介

DataRouter: library for routing arbitrary data based on hierarchical rules

README 文档

README

Simple library to route data based on nested routing rules

Use-cases:

  • Advanced alert/support routing based on schedules, escalation, priorities, etc
  • Q/A routing
  • Self-service
  • On-call scheduling

Concepts

Using the DataRouter library you create a nested tree structure of Routes.

Every Route has a name, expression (for matching), and optionally child routes and output data.

The expressions are evaluated hierarchically using the Symfony Expression Language Component allowing for arbitrarily complex routing rules.

You can pass in your own "ExpressionLanguage" instance to support your own custom functions to enrich your expressions.

Example

Check example/example.php for a simple example for a common usage scenario:

  1. Loading routes from a YAML config file (included test-routes.yaml)
  2. Instantiating a custom ExpressionLanguage instance with a custom method
  3. Instantiating a Router
  4. Routing / output
  5. Logging / debugging
php example/example.php

License

MIT. Please refer to the license file for details.

Brought to you by the LinkORB Engineering team


Check out our other projects at linkorb.com/engineering.

Btw, we're hiring!

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固