2017 © Pedro Peláez
 

library bakery

image

sukohi/bakery

  • Wednesday, August 19, 2015
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Bakery

A PHP package mainly developed for Laravel to generate breadcrumbs using routes.
(This is for Laravel 4.2. For Laravel 5+), (*1)

Installation

Add this package name in composer.json, (*2)

"require": {
  "sukohi/bakery": "2.*"
}

Execute composer command., (*3)

composer update

Register the service provider in app.php, (*4)

'providers' => [
    ...Others...,  
    Sukohi\Bakery\BakeryServiceProvider::class,
]

Also alias, (*5)

'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

  1. 'route' => 'title'
  2. 'route:parameter' => 'title'
  3. 'route:parameter1,parameter2' => 'title',
  4. '*' => 'Current Page'

License

This package is licensed under the MIT License., (*6)

Copyright 2014 Sukohi Kuhoh, (*7)

The Versions

19/08 2015

1.0.x-dev

1.0.9999999.9999999-dev

  Sources   Download

The Requires

 

by Avatar Sukohi

19/08 2015

1.0.2

1.0.2.0

  Sources   Download

The Requires

 

by Avatar Sukohi

16/08 2015

2.0.x-dev

2.0.9999999.9999999-dev

A PHP package mainly developed for Laravel to generate breadcrumbs using routes.

  Sources   Download

The Requires

 

by Avatar Sukohi

16/08 2015

dev-master

9999999-dev

A PHP package mainly developed for Laravel to generate breadcrumbs using routes.

  Sources   Download

The Requires

 

by Avatar Sukohi

16/08 2015

2.0.0

2.0.0.0

A PHP package mainly developed for Laravel to generate breadcrumbs using routes.

  Sources   Download

The Requires

 

by Avatar Sukohi

16/08 2015

1.0.1

1.0.1.0

  Sources   Download

The Requires

 

by Avatar Sukohi

03/11 2014

1.0.0

1.0.0.0

  Sources   Download

The Requires

 

by Avatar Sukohi