PHP code example of vaibhavpandeyvpz / pimple-breadcrumbs

1. Go to this page and download the library: Download vaibhavpandeyvpz/pimple-breadcrumbs 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/ */

    

vaibhavpandeyvpz / pimple-breadcrumbs example snippets




$app = new Pimple\Container();
// OR
$app = new Silex\Application();

$app->register(new Pimple\Breadcrumbs\BreadcrumbsServiceProvider());



use Pimple\Breadcrumbs\BreadcrumbsTrait;
use Silex\Application as Silex;

class Application extends Silex
{
    use BreadcrumbsTrait;
}

$app = new Application();
$app->register(new Pimple\Breadcrumbs\BreadcrumbsServiceProvider());

$app->addBreadcrumbItem('link_text', 'link_route', ['id' => 1]);