定制 ibexa/templated-uri-router 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ibexa/templated-uri-router

最新稳定版本:5.0.0

Composer 安装命令:

composer require ibexa/templated-uri-router

包简介

Fork of hautelook/templated-uri-router. Symfony RFC-6570 compatible router and URL Generator

README 文档

README

Fork of hautelook/templated-uri-router. Symfony2 UrlGenerator that provides a RFC-6570 compatible router and URL Generator. Currently it is extremely naive, and incomplete. However, it does what we need it to do. Contributions are welcome.

Build Status

Installation

Run the following command (assuming you have composer.phar or composer binary installed), or require ibexa/templated-uri-router to your composer.json and run composer install:

$ composer require ibexa/templated-uri-router

Usage

# routing.yml
hautelook_demo_route:
    pattern: /demo
use Hautelook\TemplatedUriRouter\Routing\Generator\Rfc6570Generator as TemplateGenerator;

$templateGenerator = new TemplateGenerator($routes, $context);
$templatedUri      = $templateGenerator->generate('hautelook_demo_route', array(
    'page'   => '{page}',
    'sort'   => array('{sort}'),
    'filter' => array('{filter}'),
));

This will produce a link similar to:

/demo{?page,sort*,filter*}

Bundle

The symfony2 bundle lives at https://github.com/hautelook/TemplatedUriBundle.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 12
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-10