{"id":22208121,"url":"https://github.com/mooxphp/category","last_synced_at":"2025-09-15T07:07:04.613Z","repository":{"id":264907230,"uuid":"876223032","full_name":"mooxphp/category","owner":"mooxphp","description":"[READ-ONLY] Nested categories for Filament","archived":false,"fork":false,"pushed_at":"2025-09-10T11:34:42.000Z","size":479,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-14T18:05:52.698Z","etag":null,"topics":["category","filament","laravel","nested-set","parent-child","taxonomy"],"latest_commit_sha":null,"homepage":"https://www.moox.org","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/mooxphp.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["mooxphp"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-10-21T15:49:03.000Z","updated_at":"2025-09-10T11:34:45.000Z","dependencies_parsed_at":"2025-07-22T13:12:20.723Z","dependency_job_id":null,"html_url":"https://github.com/mooxphp/category","commit_stats":null,"previous_names":["mooxphp/category"],"tags_count":6,"template":false,"template_full_name":"mooxphp/builder","purl":"pkg:github/mooxphp/category","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fcategory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fcategory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fcategory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fcategory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mooxphp","download_url":"https://codeload.github.com/mooxphp/category/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fcategory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275219875,"owners_count":25425956,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["category","filament","laravel","nested-set","parent-child","taxonomy"],"created_at":"2024-12-02T19:16:15.399Z","updated_at":"2025-09-15T07:07:04.590Z","avatar_url":"https://github.com/mooxphp.png","language":"PHP","readme":"![Moox Category](https://github.com/mooxphp/moox/raw/main/art/banner/category.jpg)\n\n# Moox Category\n\nThis is my package category\n\n## Quick Installation\n\nThese two commmands are all you need to install the package:\n\n```bash\ncomposer require moox/category\nphp artisan mooxcategory:install\n```\n\nCurious what the install command does? See manual installation below.\n\n## What it does\n\n\u003c!--whatdoes--\u003e\n\nThis Laravel Package Template can be used to create a package including a powerful Filament resource called Category.\n\n![Moox Category Category](https://github.com/mooxphp/moox/raw/main/art/screenshot/category-item.jpg)\n\nName and table for the Resource can be changed while building your package.\n\n### Using the Template\n\n1. Go to https://github.com/mooxphp/category\n2. Press the `Use this template` button\n3. Create a new repository based on the template\n4. Clone the repository locally\n5. Run `php build.php`in the repo's directory and follow the steps\n    - Author Name (Default: Moox Developer): Your Name\n    - Author Email (Default: dev@moox.org): your@mail.com\n    - Package Name (Default: Blog Package): Your Package\n    - Package Description (Default: This is my package Blog Package)\n    - Package Entity (Default: Category): e.g. Post\n    - Tablename (Default: categories): e.g. posts\n\nAfter building the package, you can push the changes to GitHub and create an installable package on Packagist.org. Don't forget to adjust the README to your composer namespace.\n\n### Config\n\nAfter that the Resource is highly configurable.\n\n#### Tabs and Translation\n\nMoox Core features like Dynamic Tabs and Translatable Config. See the config file for more details, but as a quick example:\n\n```php\n            /*\n            |--------------------------------------------------------------------------\n            | Tabs\n            |--------------------------------------------------------------------------\n            |\n            | Define the tabs for the Resource table. They are optional, but\n            | pretty awesome to filter the table by certain values.\n            | You may simply do a 'tabs' =\u003e [], to disable them.\n            |\n            */\n\n            'tabs' =\u003e [\n                'all' =\u003e [\n                    'label' =\u003e 'trans//core::core.all',\n                    'icon' =\u003e 'gmdi-filter-list',\n                    'query' =\u003e [\n                        [\n                            'field' =\u003e 'deleted_at',\n                            'operator' =\u003e '=',\n                            'value' =\u003e null,\n                        ],\n                    ],\n                ],\n                'published' =\u003e [\n                    'label' =\u003e 'trans//core::core.published',\n                    'icon' =\u003e 'gmdi-check-circle',\n                    'query' =\u003e [\n                        [\n                            'field' =\u003e 'publish_at',\n                            'operator' =\u003e '\u003c=',\n                            'value' =\u003e function () {\n                                return now();\n                            },\n                        ],\n                        [\n                            'field' =\u003e 'deleted_at',\n                            'operator' =\u003e '=',\n                            'value' =\u003e null,\n                        ],\n                    ],\n                ],\n                'scheduled' =\u003e [\n                    'label' =\u003e 'trans//core::core.scheduled',\n                    'icon' =\u003e 'gmdi-schedule',\n                    'query' =\u003e [\n                        [\n                            'field' =\u003e 'publish_at',\n                            'operator' =\u003e '\u003e',\n                            'value' =\u003e function () {\n                                return now();\n                            },\n                        ],\n                        [\n                            'field' =\u003e 'deleted_at',\n                            'operator' =\u003e '=',\n                            'value' =\u003e null,\n                        ],\n                    ],\n                ],\n                'draft' =\u003e [\n                    'label' =\u003e 'trans//core::core.draft',\n                    'icon' =\u003e 'gmdi-text-snippet',\n                    'query' =\u003e [\n                        [\n                            'field' =\u003e 'publish_at',\n                            'operator' =\u003e '=',\n                            'value' =\u003e null,\n                        ],\n                        [\n                            'field' =\u003e 'deleted_at',\n                            'operator' =\u003e '=',\n                            'value' =\u003e null,\n                        ],\n                    ],\n                ],\n                'deleted' =\u003e [\n                    'label' =\u003e 'trans//core::core.deleted',\n                    'icon' =\u003e 'gmdi-delete',\n                    'query' =\u003e [\n                        [\n                            'field' =\u003e 'deleted_at',\n                            'operator' =\u003e '!=',\n                            'value' =\u003e null,\n                        ],\n                    ],\n                ],\n            ],\n        ],\n```\n\nAll options for Tabs are explained in [Moox Core docs](https://github.com/mooxphp/core/blob/main/README.md#dynamic-tabs).\n\n#### Category Types\n\nThe item also support 'item' types, means you are able to configure selectable types for your Entity. By default, we provide \"Post\" and \"Page\" as example. If you don't want to use types, just empty the array and the field and column become invisible.\n\n```php\n    /*\n    |--------------------------------------------------------------------------\n    | Category Types\n    |--------------------------------------------------------------------------\n    |\n    | This array contains the types of categories entities. You can delete\n    | the types you don't need and add new ones. If you don't need\n    | types, you can empty this array like this: 'types' =\u003e [],\n    |\n    */\n\n    'types' =\u003e [\n        'post' =\u003e 'Post',\n        'page' =\u003e 'Page',\n    ],\n```\n\n#### Author Model\n\nYou can configure the user model used for displaying Authors. By default it is tied to App User:\n\n```php\n    /*\n    |--------------------------------------------------------------------------\n    | Author Model\n    |--------------------------------------------------------------------------\n    |\n    | This sets the user model that can be used as author. It should be an\n    | authenticatable model and support the morph relationship.\n    | It should have fields similar to Moox User or WpUser.\n    |\n    */\n\n    'user_model' =\u003e \\App\\Models\\User::class,\n```\n\nYou may probably use Moox User\n\n```php\n    'user_model' =\u003e \\Moox\\User\\Models\\User::class,\n```\n\nor Moox Press User instead:\n\n```php\n    'user_model' =\u003e \\Moox\\Press\\Models\\WpUser::class,\n```\n\n\u003c!--/whatdoes--\u003e\n\n## Manual Installation\n\nInstead of using the install-command `php artisan mooxcategory:install` you are able to install this package manually step by step:\n\n```bash\n// Publish and run the migrations:\nphp artisan vendor:publish --tag=\"category-migrations\"\nphp artisan migrate\n\n// Publish the config file with:\nphp artisan vendor:publish --tag=\"category-config\"\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](https://github.com/mooxphp/moox/security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n-   [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":["https://github.com/sponsors/mooxphp"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooxphp%2Fcategory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmooxphp%2Fcategory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooxphp%2Fcategory/lists"}