{"id":22238587,"url":"https://github.com/tomatophp/filament-language-switcher","last_synced_at":"2025-07-27T23:31:05.319Z","repository":{"id":259855960,"uuid":"877289787","full_name":"tomatophp/filament-language-switcher","owner":"tomatophp","description":"Switch between languages on your app using user base column on database","archived":false,"fork":false,"pushed_at":"2025-06-16T22:27:38.000Z","size":1039,"stargazers_count":22,"open_issues_count":3,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T20:45:30.156Z","etag":null,"topics":["filament","filament-plugin","languages","laravel","multi-language","switcher","tomatophp"],"latest_commit_sha":null,"homepage":"https://tomatophp.com/en/open-source/filament-language-switcher","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/tomatophp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["3x1io"]}},"created_at":"2024-10-23T12:11:44.000Z","updated_at":"2025-06-23T08:50:46.000Z","dependencies_parsed_at":"2024-10-28T12:51:21.368Z","dependency_job_id":"e869d103-bae1-414b-85ba-5da99c2c8a2c","html_url":"https://github.com/tomatophp/filament-language-switcher","commit_stats":null,"previous_names":["tomatophp/filament-language-switcher"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tomatophp/filament-language-switcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomatophp%2Ffilament-language-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomatophp%2Ffilament-language-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomatophp%2Ffilament-language-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomatophp%2Ffilament-language-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomatophp","download_url":"https://codeload.github.com/tomatophp/filament-language-switcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomatophp%2Ffilament-language-switcher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267441122,"owners_count":24087771,"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-07-27T02:00:11.917Z","response_time":82,"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":["filament","filament-plugin","languages","laravel","multi-language","switcher","tomatophp"],"created_at":"2024-12-03T03:17:08.422Z","updated_at":"2025-07-27T23:31:04.955Z","avatar_url":"https://github.com/tomatophp.png","language":"PHP","funding_links":["https://github.com/sponsors/3x1io"],"categories":[],"sub_categories":[],"readme":"![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-language-switcher/master/arts/3x1io-tomato-language-switcher.jpg)\n\n# Filament Language Switcher\n\n[![Dependabot Updates](https://github.com/tomatophp/filament-language-switcher/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/tomatophp/filament-language-switcher/actions/workflows/dependabot/dependabot-updates)\n[![PHP Code Styling](https://github.com/tomatophp/filament-language-switcher/actions/workflows/fix-php-code-styling.yml/badge.svg)](https://github.com/tomatophp/filament-language-switcher/actions/workflows/fix-php-code-styling.yml)\n[![Tests](https://github.com/tomatophp/filament-language-switcher/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/tomatophp/filament-language-switcher/actions/workflows/tests.yml)\n[![Latest Stable Version](https://poser.pugx.org/tomatophp/filament-language-switcher/version.svg)](https://packagist.org/packages/tomatophp/filament-language-switcher)\n[![License](https://poser.pugx.org/tomatophp/filament-language-switcher/license.svg)](https://packagist.org/packages/tomatophp/filament-language-switcher)\n[![Downloads](https://poser.pugx.org/tomatophp/filament-language-switcher/d/total.svg)](https://packagist.org/packages/tomatophp/filament-language-switcher)\n\nSwitch between languages on your app using user base column on database\n\n## Screenshots\n\n![Switcher](https://raw.githubusercontent.com/tomatophp/filament-language-switcher/master/arts/switcher.png)\n![Dropdown Ar](https://raw.githubusercontent.com/tomatophp/filament-language-switcher/master/arts/dropdown-ar.png)\n![Dropdown En](https://raw.githubusercontent.com/tomatophp/filament-language-switcher/master/arts/dropdown-en.png)\n\n## Installation\n\n```bash\ncomposer require tomatophp/filament-language-switcher\n```\nafter install your package please run this command\n\n```bash\nphp artisan filament-language-switcher:install\n```\n\nfinally register the plugin on `/app/Providers/Filament/AdminPanelProvider.php`\n\n```php\n-\u003eplugin(\\TomatoPHP\\FilamentLanguageSwitcher\\FilamentLanguageSwitcherPlugin::make())\n```\n\nnow on your `User.php` model or any user model add this trait\n\n```php\nuse \\TomatoPHP\\FilamentLanguageSwitcher\\Traits\\InteractsWithLanguages;\n```\n\nnow you must see the switcher and you can change language as you like\n\n## Publish Assets\n\nyou can publish config file by use this command\n\n```bash\nphp artisan vendor:publish --tag=\"filament-language-switcher-config\"\n```\n\nyou can publish views file by use this command\n\n```bash\nphp artisan vendor:publish --tag=\"filament-language-switcher-views\"\n```\n\nyou can publish languages file by use this command\n\n```bash\nphp artisan vendor:publish --tag=\"filament-language-switcher-lang\"\n```\n\nyou can publish migrations file by use this command\n\n```bash\nphp artisan vendor:publish --tag=\"filament-language-switcher-migrations\"\n```\n\n## Testing\n\nif you like to run `PEST` testing just use this command\n\n```bash\ncomposer test\n```\n\n## Code Style\n\nif you like to fix the code style just use this command\n\n```bash\ncomposer format\n```\n\n## PHPStan\n\nif you like to check the code by `PHPStan` just use this command\n\n```bash\ncomposer analyse\n```\n\n## Other Filament Packages\n\nCheckout our [Awesome TomatoPHP](https://github.com/tomatophp/awesome)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomatophp%2Ffilament-language-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomatophp%2Ffilament-language-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomatophp%2Ffilament-language-switcher/lists"}