Breadcrumbr
Breadcrumbr, breadcrumb logic helpers., (*1)
Usage
In it's very basic form., (*2)
$breadcrumb = new \Breadcrumbr\Breadcrumb();
$breadcrumb->addCrumb(new \Breadcrumbr\Crumb\Crumb());
foreach ($breadcrumb as $crumb) {
// Render the crumb
}
Adding resolvers., (*3)
$breadcrumb->addResolver(new EnvResolver());
// render
Adding more context to the resolvers., (*4)
$context = new \Breadcrumbr\Context\Context();
$context->addContext('menu', $menuInfo);
$breadcrumb->setContext($context);
$breadcrumb->addResolver(new MenuResolver());
// render
Contributing
All code contributions - including those of people having commit access - must
go through a pull request and approved by a core developer before being
merged. This is to ensure proper review of all the code., (*5)
Fork the project, create a feature branch, and send us a pull request., (*6)
To ensure a consistent code base, you should make sure the code follows
the Coding Standards
which we borrowed from Symfony.
Make sure to check out php-cs-fixer as this will help you a lot., (*7)
If you would like to help take a look at the list of issues., (*8)
Requirements
PHP 5.3.2 or above, (*9)
Author and contributors
Dries De Peuter - dries@nousefreak.be - http://nousefreak.be, (*10)
See also the list of contributors who participated in this project., (*11)
License
This project is licensed under the MIT license., (*12)