{"id":13673072,"url":"https://github.com/Log1x/crumb","last_synced_at":"2025-04-28T08:33:45.367Z","repository":{"id":42972194,"uuid":"323014110","full_name":"Log1x/crumb","owner":"Log1x","description":"A simple breadcrumb package for Sage 10.","archived":false,"fork":false,"pushed_at":"2023-11-16T23:56:18.000Z","size":20,"stargazers_count":41,"open_issues_count":4,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T00:41:59.979Z","etag":null,"topics":["acorn","breadcrumb","laravel","roots","sage","sage10","wordpress"],"latest_commit_sha":null,"homepage":"https://github.com/log1x/crumb","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Log1x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"Log1x"}},"created_at":"2020-12-20T07:05:18.000Z","updated_at":"2025-02-19T15:41:01.000Z","dependencies_parsed_at":"2024-01-17T04:41:11.199Z","dependency_job_id":"6f4f2359-7389-4501-878d-7fa963655b13","html_url":"https://github.com/Log1x/crumb","commit_stats":{"total_commits":9,"total_committers":3,"mean_commits":3.0,"dds":0.2222222222222222,"last_synced_commit":"2c949ffbcb440aa6712f9bfb56dd6516e377a7a3"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Fcrumb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Fcrumb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Fcrumb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Fcrumb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Log1x","download_url":"https://codeload.github.com/Log1x/crumb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251267673,"owners_count":21561908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acorn","breadcrumb","laravel","roots","sage","sage10","wordpress"],"created_at":"2024-08-02T10:00:24.012Z","updated_at":"2025-04-28T08:33:44.489Z","avatar_url":"https://github.com/Log1x.png","language":"PHP","funding_links":["https://github.com/sponsors/Log1x"],"categories":["Packages","PHP"],"sub_categories":[],"readme":"# Crumb\n\n![Latest Stable Version](https://img.shields.io/packagist/v/log1x/crumb?style=flat-square)\n![Build Status](https://img.shields.io/github/actions/workflow/status/log1x/crumb/main.yml?branch=master\u0026style=flat-square)\n![Total Downloads](https://img.shields.io/packagist/dt/log1x/crumb?style=flat-square)\n\nA simple breadcrumb package for Sage 10.\n\n## Requirements\n\n- [Sage](https://github.com/roots/sage) \u003e= 10.0\n- [PHP](https://secure.php.net/manual/en/install.php) \u003e= 7.4\n- [Composer](https://getcomposer.org/download/)\n\n## Installation\n\nInstall via Composer:\n\n```bash\n$ composer require log1x/crumb\n```\n\n## Usage\n\nPublish the breadcrumb configuration file using Acorn:\n\n```sh\n$ wp acorn vendor:publish --provider=\"Log1x\\Crumb\\CrumbServiceProvider\"\n```\n\n### Example\n\n```php\n# app/View/Components/Breadcrumb.php\n\n\u003c?php\n\nnamespace App\\View\\Components;\n\nuse Roots\\Acorn\\View\\Component;\nuse Log1x\\Crumb\\Facades\\Crumb;\n\nclass Breadcrumb extends Component\n{\n    /**\n     * Create a new component instance.\n     *\n     * @return void\n     */\n    public function __construct()\n    {\n        //\n    }\n\n    /**\n     * The breadcrumb items.\n     *\n     * @return string\n     */\n    public function items()\n    {\n        return Crumb::build()-\u003etoArray();\n    }\n\n    /**\n     * Get the view / contents that represent the component.\n     *\n     * @return \\Illuminate\\View\\View|string\n     */\n    public function render()\n    {\n        return $this-\u003eview('components.breadcrumb');\n    }\n}\n```\n\n```php\n# views/components/breadcrumb.blade.php\n\n@if (! empty($items))\n  \u003cnav\n    aria-label=\"Breadcrumb\"\n    class=\"flex items-center py-2 -mx-2 leading-none\"\n    vocab=\"https://schema.org/\"\n    typeof=\"BreadcrumbList\"\n  \u003e\n    @foreach ($items as $item)\n      @if (empty($item['url']))\n        \u003cspan class=\"p-2 font-medium cursor-default\"\u003e\n          {{ $item['label'] }}\n        \u003c/span\u003e\n      @else\n        \u003cspan class=\"p-2\" property=\"itemListElement\" typeof=\"ListItem\"\u003e\n          \u003ca\n            property=\"item\"\n            typeof=\"WebPage\"\n            title=\"Go to {!! $item['label'] !!}.\"\n            href=\"{{ $item['url'] }}\"\n            class=\"hover:text-indigo-500\"\n          \u003e\n            \u003cspan property=\"name\"\u003e\n              @if ($loop-\u003efirst)\n                \u003csvg\n                  class=\"flex-shrink-0 w-5 h-5\"\n                  xmlns=\"http://www.w3.org/2000/svg\"\n                  viewBox=\"0 0 20 20\"\n                  fill=\"currentColor\"\n                  aria-hidden=\"true\"\n                \u003e\n                  \u003cpath d=\"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z\" /\u003e\n                \u003c/svg\u003e\n\n                \u003cspan class=\"sr-only\"\u003e{!! $item['label'] !!}\u003c/span\u003e\n              @else\n                {!! $item['label'] !!}\n              @endif\n            \u003c/span\u003e\n          \u003c/a\u003e\n\n          \u003cmeta property=\"position\" content=\"{{ $loop-\u003eiteration }}\"\u003e\n        \u003c/span\u003e\n\n        @if (!$loop-\u003elast)\n          \u003csvg class=\"flex-shrink-0 w-5 h-5 text-indigo-300\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"\u003e\n            \u003cpath fill-rule=\"evenodd\" d=\"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z\" clip-rule=\"evenodd\" /\u003e\n          \u003c/svg\u003e\n        @endif\n      @endif\n    @endforeach\n  \u003c/nav\u003e\n@endif\n```\n\n## Bug Reports\n\nIf you discover a bug in Crumb, please [open an issue](https://github.com/log1x/crumb/issues).\n\n## Contributing\n\nContributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.\n\n## License\n\nCrumb is provided under the [MIT License](https://github.com/log1x/crumb/blob/master/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLog1x%2Fcrumb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLog1x%2Fcrumb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLog1x%2Fcrumb/lists"}