colinajd/laravel-breadcrumbs
Composer 安装命令:
composer require colinajd/laravel-breadcrumbs
包简介
A simple Laravel-style way to create breadcrumbs in Laravel 4+.
关键字:
README 文档
README
A simple Laravel-style way to create breadcrumbs in Laravel 5.
(If you are still using Laravel 4.0 to 4.2 please use the 2.x version of Laravel Breadcrumbs instead.)
THIS PACKAGE IS NO LONGER MAINTAINED
Short Version
- You're welcome to keep using Laravel Breadcrumbs, but
- No support requests will be answered
- No bugs will be fixed
- No pull requests will be merged
- Feel free to fork it and maintain it yourself
Why?
I originally built Laravel Breadcrumbs in May 2013 when I was just learning Laravel (Laravel 4 was still in beta at the time). I decided to release it as a package mostly just to learn how packages worked in more detail.
Over time it became reasonably popular (381k installs, 757 stars, Page 1 of Packalyst Most Popular), and people started opening issues requesting support and additional features. I've always tried to be helpful and provide support, and for the last 18 months I have been planning to dedicate some time to merging all the open pull requests, implementing the feature requests and updating/rewriting the documentation... But finally I realised I no longer have the motivation needed for it.
So rather than quietly abandoning it and leaving users wondering what happened, I've decided to officially announce that the package is no longer maintained.
(To be clear, you are welcome to keep using it - just don't expect me to fix it if it breaks. That includes when new Laravel versions are relased.)
Forking It
Laravel Breadcrumbs is released under the MIT License, which means you are free to create your own fork (whether for your own use or for anyone to use) as long as you retain the copyright notices.
The documentation includes some instructions that may help if you haven't done that before.
I'm not planning to hand over control of this repo to anyone else (as it is in my name), but if anyone decides to create a fork that they are willing to support and maintain, please email me and I'll add a link to this page. You can also use issue #137 to discuss it among yourselves.
If you do commit to supporting your fork, you should be aware that writing code to solve your own problems is the easy bit - the tricky bits include:
- Dealing with vague support requests and people that expect you to solve their bugs with no thanks
- Being asked to write new features that you don't personally need because other people want them but aren't willing to spend time writing them
- Writing clear and concise documentation for every feature, so users don't get confused and take up even more time asking for support
- Having to write most of the documentation and unit tests yourself because few PRs include them
- Doing all of that even though you don't get paid anything for it
Known Bugs
I'm only aware of 1 outstanding bug:
As a workaround, either name your routes or wrap it in a try/catch block.
Open Pull Requests
Thanks to the people who opened these PRs. I'm sorry I won't be able to merge them. Maybe if someone creates a fork they would be good enough to review them:
- Allow breadcrumb name to be set in routes
- Add Breadcrumbs::get() method
- Microdata in templates - Option 1, Option 2
- Bootstrap 4 template
- Support for class-based breadcrumbs (alternative to closures)
- Make breadcrumbs location configurable
- Materialize and Foundation 6 templates
Open Requests
- Automatically add a breadcrumb for pagination
- Support dependency injection
- Improve documentation around multiple parameters
- Add Breadcrumbs::group() method - though I don't personally see the value
- Cache breadcrumbs - though I'm not convinced there would be much speed improvement
- Throw an exception if accidentally called recursively - though Xdebug already handles this if installed
Other Suggestions for Forks
- The documentation needs updating to recommend using
->name('name')instead of['as' => 'name']in routes (since Laravel 5.3) - I was considering rewriting the documentation to make Route-bound breadcrumbs the standard instead of an after-thought, with a better explanation of how explicit and implicit binding work, since these seem to be things people get stuck on
- You will need to set up accounts on Packagist for package delivery and Read the Docs for documentation
- You might also want to set up Travis CI and Coveralls - there are already config files for them in the repo
Documentation
Copyright © 2013-2015 Dave James Miller. Released under the MIT License.
colinajd/laravel-breadcrumbs 适用场景与选型建议
colinajd/laravel-breadcrumbs 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 316 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 01 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 colinajd/laravel-breadcrumbs 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 colinajd/laravel-breadcrumbs 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 colinajd/laravel-breadcrumbs 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Alfabank REST API integration
Laravel package for Accurate Online API integration.
Shared RCX Laravel DataTables UI and configuration helpers.
Boot a Laravel project on any machine with one command: app:serve installs missing tools (PHP, Node, Composer, Herd, Docker), creates .env, sets up the database, runs migrations, builds assets, starts a queue worker and serves via Herd, Sail or artisan serve; app:down cleanly stops everything it sta
Branded, diagnostic error pages (500, 403, 404, 419, 503) for Filament — native Filament UI, dark mode and translations out of the box.
Turn any PDF into a Pingen-ready A4 letter (generated address cover page + A4 normalisation + safe margins) and send it through the Pingen print & mail API. Laravel-first.
统计信息
- 总下载量: 316
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-25