{"id":26494967,"url":"https://github.com/mooxphp/data","last_synced_at":"2026-02-20T16:02:39.687Z","repository":{"id":237404931,"uuid":"730202031","full_name":"mooxphp/data","owner":"mooxphp","description":"[READ-ONLY] Static Language Data for Filament","archived":false,"fork":false,"pushed_at":"2025-09-10T11:35:14.000Z","size":1174,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-22T02:03:53.860Z","etag":null,"topics":["countries","currencies","data","filament","languages","laravel","static","timezones"],"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":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":"2023-12-11T12:22:46.000Z","updated_at":"2025-09-10T11:35:17.000Z","dependencies_parsed_at":"2024-05-01T10:06:03.030Z","dependency_job_id":"cb4905b1-68bc-48d2-9d38-f646a487a9fe","html_url":"https://github.com/mooxphp/data","commit_stats":null,"previous_names":["mooxphp/data_languages","mooxphp/data"],"tags_count":13,"template":false,"template_full_name":"mooxphp/builder","purl":"pkg:github/mooxphp/data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mooxphp","download_url":"https://codeload.github.com/mooxphp/data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fdata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29656589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["countries","currencies","data","filament","languages","laravel","static","timezones"],"created_at":"2025-03-20T10:30:34.818Z","updated_at":"2026-02-20T16:02:39.656Z","avatar_url":"https://github.com/mooxphp.png","language":"PHP","readme":"![Moox DataLanguages](https://github.com/mooxphp/moox/raw/main/art/banner/data-package.jpg)\n\n# Moox DataLanguages\n\nSome Static Data\n\n## Quick Installation\n\nThese two commmands are all you need to install the package:\n\n```bash\ncomposer require moox/data\nphp artisan data:install\n```\n\nCurious what the install command does? See manual installation below.\n\n## What it does\n\nStatic Data for country, language, Timzones, and Currencies. \n\n\nalso see ==\u003e https://filamentphp.com/docs/3.x/support/render-hooks\n\nTo include it in your frontend jsut use the livewire notation \n\n```\n                \u003clivewire:language-switch /\u003e\n```\n\nOn default the component will assume the context is frontend. If thats not the chase provide the context withing the componenten.\n\n### Using the Template\n\n### Config\n\nAfter that the Resource is highly configurable.\n\n#### DataPanelProvider\n\nTo use the DataPanelProvider, you need to enable it in the config file:\n\n```php\n    'enable-panel' =\u003e true,\n``` \nnow the panel will be available at `/data`\n\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#### Item 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    | Item Types\n    |--------------------------------------------------------------------------\n    |\n    | This array contains the types of items 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    'author_model' =\u003e \\App\\Models\\User::class,\n```\n\nYou may probably use Moox User\n\n```php\n    'author_model' =\u003e \\Moox\\User\\Models\\User::class,\n```\n\nor Moox Press User instead:\n\n```php\n    'author_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 data: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=\"data-migrations\"\nphp artisan migrate\n\n// Publish the config file with:\nphp artisan vendor:publish --tag=\"data-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%2Fdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmooxphp%2Fdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooxphp%2Fdata/lists"}