PHP code example of floor12 / breadcrumbs-microdata
1. Go to this page and download the library: Download floor12/breadcrumbs-microdata 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/ */
floor12 / breadcrumbs-microdata example snippets
use floor12\Breadcrumbs\Breadcrumbs;
$elements = [
'/first' => 'First element 1',
'/first/second' => 'Second element 2',
'Current',
];
(new Breadcrumbs($elements))->getHtml();
use floor12\Breadcrumbs\Breadcrumbs;
(new Breadcrumbs())
->addElement('First element 1', '/first')
->addElement('Second element 2', '/first/second')
->addElement('Current')
->getHtml();
use floor12\Breadcrumbs\Breadcrumbs;
(new Breadcrumbs([]))
->setMainId('some-id')
->setCssClass('some-css-class')
->getHtml();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.