PHP code example of vienasbaitas / breadcrumbs
1. Go to this page and download the library: Download vienasbaitas/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/ */
vienasbaitas / breadcrumbs example snippets
$breadcrumbs = new \VienasBaitas\Breadcrumbs\Breadcrumbs();
$breadcrumbs->item('Dashboard')->path('/dashboard');
$breadcrumbs->item('Settings')->path('/settings');
$breadcrumbs->item('Blog')->path('/blog')->target(\VienasBaitas\Breadcrumbs\BreadcrumbItem::TARGET_BLANK);
$renderer = new \VienasBaitas\Breadcrumbs\Renderers\ArrayRenderer();
$asArray = $renderer->render($breadcrumbs);