PHP code example of nousefreak / breadcrumbr

1. Go to this page and download the library: Download nousefreak/breadcrumbr library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nousefreak / breadcrumbr example snippets


$breadcrumb = new \Breadcrumbr\Breadcrumb();
$breadcrumb->addCrumb(new \Breadcrumbr\Crumb\Crumb());

foreach ($breadcrumb as $crumb) {
    // Render the crumb
}

$breadcrumb->addResolver(new EnvResolver());

// render

$context = new \Breadcrumbr\Context\Context();
$context->addContext('menu', $menuInfo);

$breadcrumb->setContext($context);
$breadcrumb->addResolver(new MenuResolver());

// render