{"id":20562153,"url":"https://github.com/myerscode/laravel-taxonomies","last_synced_at":"2026-04-02T15:41:25.979Z","repository":{"id":57022634,"uuid":"161706378","full_name":"myerscode/laravel-taxonomies","owner":"myerscode","description":"A package to bring simple taxonomy relationships to Laravel models","archived":false,"fork":false,"pushed_at":"2026-03-27T22:41:23.000Z","size":73,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-27T23:31:06.386Z","etag":null,"topics":["eloquent","laravel","laravel-models","laravel-taxonomies","localisation","mariadb","taxonomy"],"latest_commit_sha":null,"homepage":null,"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/myerscode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-12-13T23:21:56.000Z","updated_at":"2026-03-27T22:41:26.000Z","dependencies_parsed_at":"2023-11-21T17:13:12.534Z","dependency_job_id":null,"html_url":"https://github.com/myerscode/laravel-taxonomies","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":0.05405405405405406,"last_synced_commit":"fadc06077e5b3011b4c3d7a0c296c3fb6e14756e"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/myerscode/laravel-taxonomies","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myerscode%2Flaravel-taxonomies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myerscode%2Flaravel-taxonomies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myerscode%2Flaravel-taxonomies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myerscode%2Flaravel-taxonomies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myerscode","download_url":"https://codeload.github.com/myerscode/laravel-taxonomies/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myerscode%2Flaravel-taxonomies/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31309193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["eloquent","laravel","laravel-models","laravel-taxonomies","localisation","mariadb","taxonomy"],"created_at":"2024-11-16T04:09:23.235Z","updated_at":"2026-04-02T15:41:25.965Z","avatar_url":"https://github.com/myerscode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Taxonomies\n\u003e A package for creating taxonomies and terms to categorise Eloquent models\n\n[![Latest Stable Version](https://poser.pugx.org/myerscode/laravel-taxonomies/v/stable)](https://packagist.org/packages/myerscode/laravel-taxonomies)\n[![Total Downloads](https://poser.pugx.org/myerscode/laravel-taxonomies/downloads)](https://packagist.org/packages/myerscode/laravel-taxonomies)\n[![PHP Version Require](http://poser.pugx.org/myerscode/laravel-taxonomies/require/php)](https://packagist.org/packages/myerscode/laravel-taxonomies)\n[![License](https://poser.pugx.org/myerscode/laravel-taxonomies/license)](https://github.com/myerscode/laravel-taxonomies/blob/main/LICENSE)\n[![Tests](https://github.com/myerscode/laravel-taxonomies/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/myerscode/laravel-taxonomies/actions/workflows/tests.yml)\n[![codecov](https://codecov.io/gh/myerscode/laravel-taxonomies/graph/badge.svg)](https://codecov.io/gh/myerscode/laravel-taxonomies)\n\n## Why is this package helpful?\n\nThis package allow you to create taxonomies and terms and relate them to Laravel models, similar to WordPress\n\n* Create Taxonomy groups to categorise your models\n* Add terms to models and to taxonomies\n* Use your localisation files to translate taxonomy and term names\n* Find all models relating to a given taxonomy or term\n\nUnlike other popular tag packages for Laravel this one supports MariaDB.\n\n## Requirements\n\n- PHP ^8.5\n- Laravel ^13.0\n\n## Install\n\nYou can install this package via composer:\n\n``` bash\ncomposer require myerscode/laravel-taxonomies\n```\n\n## Setup\n\nThe service provider will automatically be registered via package discovery.\n\nPublish the migration with:\n```bash\nphp artisan vendor:publish --provider=\"Myerscode\\Laravel\\Taxonomies\\ServiceProvider\" --tag=\"migrations\"\n```\n\nAfter the migration has been published, run the migrations to create the `tags`, `taxonomies` and `taggables` tables.\n\n## [Usage](docs/model.md)\n\nTo make an Eloquent model taggable just add the `\\Myerscode\\Laravel\\Taxonomies\\HasTaxonomy` trait to it:\n```php\nclass Post extends Model\n{\n    use \\Myerscode\\Laravel\\Taxonomies\\HasTaxonomy;\n\n    ...\n}\n```\n\n\n## [Terms](docs/terms.md)\n\nAre the meta tags you want to add to your model, giving them a definable characteristic.\n\n\n\n## [Taxonomies](docs/taxonomies.md)\n\nAre are a way of grouping your terms together, categorising your collection.\n\nFor example a `Taxonomy` called `Colours` could contain terms such as `Red`, `Yellow`, `Green` and `Blue`. \n\n\n\n## [Localisation](docs/localisation.md)\n\nYou can get translated names from your terms and taxonomies by setting localised language files.\n\n\n\n## Advance Usage\n\nYou can change the default `Taxonomy` or `Term` class by publishing the config, and modifying the classes to your custom models.\n\nPublish the config file with:\n```bash\nphp artisan vendor:publish --provider=\"Myerscode\\Laravel\\Taxonomies\\ServiceProvider\" --tag=\"config\"\n```\n\n\n## License\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%2Fmyerscode%2Flaravel-taxonomies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyerscode%2Flaravel-taxonomies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyerscode%2Flaravel-taxonomies/lists"}