Download the PHP package sukohi/bakery without Composer
On this page you can find all versions of the php package sukohi/bakery. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package bakery
Bakery
A PHP package mainly developed for Laravel to generate breadcrumbs using routes.
(This is for Laravel 4.2. For Laravel 5+)
Installation
Add this package name in composer.json
"require": {
"sukohi/bakery": "2.*"
}
Execute composer command.
composer update
Register the service provider in app.php
'providers' => [
...Others...,
Sukohi\Bakery\BakeryServiceProvider::class,
]
Also alias
'aliases' => [
...Others...,
'Bakery' => Sukohi\Bakery\Facades\Bakery::class
]
Usage
$params = [
'home' => 'Home',
'home.area:vancouver' => 'Vancouver',
'home.food:sushi,popular' => 'Popular sushi restaurants',
'*' => 'Samurai'
];
foreach(\Bakery::get($params) as $bakery) {
if($bakery->isCurrent) {
echo $bakery->title;
} else {
echo link_to($bakery->url, $bakery->title) .' > ';
}
}
About parameter pattern
- 'route' => 'title'
- 'route:parameter' => 'title'
- 'route:parameter1,parameter2' => 'title',
- '*' => 'Current Page'
License
This package is licensed under the MIT License.
Copyright 2014 Sukohi Kuhoh
All versions of bakery with dependencies
PHP Build Version
Package Version
The package sukohi/bakery contains the following files
Loading the files please wait ....