n2ref / coreui-breadcrumb
PHP framework for web applications
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:framework
Requires
- php: >=8.0.0
README
Composer install
composer install n2ref/coreui-breadcrumb-php
Example usage
$breadcrumb = new \CoreUI\Breadcrumb('id'); $breadcrumb->setDivider('>'); $breadcrumb->addItem('Page title 1', '/page-url-1'); $breadcrumb->addItem('Page title 2', '/page-url-2'); $breadcrumb->addItem('Current page title'); echo json_encode($breadcrumb->toArray());
Output
{ "component": "coreui.breadcrumb", "id": "id", "divider": ">", "items": [ { "text": "Page title 1", "url": "/page-url-1" }, { "text": "Page title 2", "url": "/page-url-2" }, { "text": "Current page title" } ] }