定制 breadcrumbs/minicrumbs 二次开发

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

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

breadcrumbs/minicrumbs

Composer 安装命令:

composer require breadcrumbs/minicrumbs

包简介

Portable lightweight breadcrumbs library

README 文档

README

Super portable, lightweight breadcrumbs library

To install:

composer require breadcrumbs/minicrumbs


The way it works is it parses the request URI, ie. /home/about/company into an an iterable array of breadcrumb objects so that you can render something like: "Home | About | Company" in your markup with all the necessary links without you having to worry about the formatting, names or links.

Examples

It's as easy as:

use MiniCrumbs\MiniCrumbs;

$crumbs = new MiniCrumbs();

This will return you an instance of MiniCrumbs of which you can:

$crumbsArray = $crumbs->parse();

This will give you an iterable object which you can loop in your templates, though a premade render function is available to the lazier ones:

$crumbs->render();

Will render the default breadcrumbs markup

Documentaion

The Minicrumbs constructor takes the following arguments:

MiniCrumbs($format = 'standard', $home='home', $options = array())

Format:

'upper', 'lower', ''standard' - (string) how the breadcrumbs should be formatted

Home:

defaults to ''home' - (string) alias for the first breadcrumb linking to home

Options:

array of options - developer options for testing e.g ['test' => true]

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固