{"id":13396069,"url":"https://github.com/spatie/laravel-menu","last_synced_at":"2025-04-14T02:57:52.640Z","repository":{"id":40545853,"uuid":"52299893","full_name":"spatie/laravel-menu","owner":"spatie","description":"Html menu generator for Laravel","archived":false,"fork":false,"pushed_at":"2025-02-21T10:36:55.000Z","size":139,"stargazers_count":957,"open_issues_count":0,"forks_count":82,"subscribers_count":25,"default_branch":"main","last_synced_at":"2025-04-14T02:57:49.304Z","etag":null,"topics":["generate","html","laravel","menu","navigation","php"],"latest_commit_sha":null,"homepage":"https://freek.dev/414-a-modern-package-to-generate-html-menus","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/spatie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://spatie.be/open-source/support-us"}},"created_at":"2016-02-22T19:35:39.000Z","updated_at":"2025-04-13T15:23:23.000Z","dependencies_parsed_at":"2024-06-18T10:58:05.905Z","dependency_job_id":"911061a7-26a5-43b2-ab36-38319ce2c86a","html_url":"https://github.com/spatie/laravel-menu","commit_stats":{"total_commits":211,"total_committers":24,"mean_commits":8.791666666666666,"dds":0.5781990521327014,"last_synced_commit":"e571de6a6bd6fe86b24f1325839d054e2c6cb4b7"},"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spatie","download_url":"https://codeload.github.com/spatie/laravel-menu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813786,"owners_count":21165632,"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":["generate","html","laravel","menu","navigation","php"],"created_at":"2024-07-30T18:00:38.946Z","updated_at":"2025-04-14T02:57:52.616Z","avatar_url":"https://github.com/spatie.png","language":"PHP","funding_links":["https://spatie.be/open-source/support-us"],"categories":["Popular Packages","PHP","Packages"],"sub_categories":["Helpers/General"],"readme":"# Html Menu Generator for Laravel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/laravel-menu.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-menu)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n![Test Status](https://img.shields.io/github/workflow/status/spatie/laravel-menu/run-tests?label=tests)\n![Code Style Status](https://img.shields.io/github/workflow/status/spatie/laravel-menu/Check%20\u0026%20fix%20styling?label=code%20style)\n[![Total Downloads](https://img.shields.io/packagist/dt/spatie/laravel-menu.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-menu)\n\nThis is the Laravel version of [our menu package](https://github.com/spatie/menu) adds some extras like convenience methods for generating URLs and macros.\n\nDocumentation is available at https://spatie.be/docs/menu.\n\nUpgrading from version 1? There's a [guide](https://github.com/spatie/laravel-menu#upgrading-to-20) for that!\n\n```php\nMenu::macro('main', function () {\n    return Menu::new()\n        -\u003eaction('HomeController@index', 'Home')\n        -\u003eaction('AboutController@index', 'About')\n        -\u003eaction('ContactController@index', 'Contact')\n        -\u003esetActiveFromRequest();\n});\n```\n\n```html\n\u003cnav class=\"navigation\"\u003e\n    {!! Menu::main() !!}\n\u003c/nav\u003e\n```\n\nSpatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).\n\n## Support us\n\n[\u003cimg src=\"https://github-ads.s3.eu-central-1.amazonaws.com/laravel-menu.jpg?t=1\" width=\"419px\" /\u003e](https://spatie.be/github-ad-click/laravel-menu)\n\nWe invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).\n\nWe highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require spatie/laravel-menu\n```\n\n## Usage\n\nDocumentation is available at https://spatie.be/docs/menu.\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ phpunit\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security\n\nIf you've found a bug regarding security please mail [security@spatie.be](mailto:security@spatie.be) instead of using the issue tracker.\n\n## Credits\n\n- [Sebastian De Deyne](https://github.com/sebastiandedeyne)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Flaravel-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspatie%2Flaravel-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Flaravel-menu/lists"}