2017 © Pedro Peláez
 

library php-breadcrumbs

PHP breadcrumbs rendering class

image

mkomorowski/php-breadcrumbs

PHP breadcrumbs rendering class

  • Wednesday, July 22, 2015
  • by mKomorowski
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-breadcrumbs

PHP breadcrumbs rendering class, (*1)

Installation

The package can be installed via Composer by adding to the composer.json require block., (*2)

{
    "require": {
        "mkomorowski/php-breadcrumbs": "dev-master"
    }
}

Then update application packages by running the command:, (*3)

php composer.phar install

Usage

$breadCrumbsRender = new mKomorowski\Breadcrumbs\Render;

Rendering breadcrumbs can be achieved by passing custom URI path., (*4)

echo $breadCrumbsRender->build('/library/data')

By default Render class will always prepend breadcrumbs with 'Home' crumb linking to '/' root path. To disable 'Home' crumb:, (*5)

$breadCrumbsRender->disableHomeCrumb()

Edit 'Home' crumb by:, (*6)

$breadcrumbsRender->setHomeCrumb("<a href='/'>Main</a>");

Passsing php null will render php $_SERVER['REQUEST_URI'] parameter, (*7)

echo $breadCrumbsRender->build()

The Versions

22/07 2015

dev-master

9999999-dev https://github.com/mKomorowski/php-breadcrumbs

PHP breadcrumbs rendering class

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Michal Komorowski

php bootstrap html breadcrumbs render