atannex / localization
Complete localization for Laravel: locale registry with a built-in catalog, request negotiation (URL prefix, domain, query, user, session, cookie, Accept-Language, geo), localized URLs and hreflang, a language switcher, translatable Eloquent attributes with driver-aware JSON queries, locale-aware fo
Requires
- php: ^8.2
- illuminate/console: ^11.0|^12.0
- illuminate/database: ^11.0|^12.0
- illuminate/http: ^11.0|^12.0
- illuminate/routing: ^11.0|^12.0
- illuminate/support: ^11.0|^12.0
- illuminate/translation: ^11.0|^12.0
- illuminate/view: ^11.0|^12.0
- nesbot/carbon: ^3.0
Requires (Dev)
- orchestra/testbench: ^9.0|^10.0
- phpunit/phpunit: ^11.5
Suggests
- ext-intl: Native number, currency, list and language-name formatting in every locale.
- filament/filament: For Atannex\Localization\Filament\LocalizationPlugin (^4.0).
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-30 11:14:44 UTC
README
Runs a Laravel site in several languages. It works out which language each visitor wants (from the address, their account, a cookie or their browser), builds the right links for each language, and offers a language switcher. Model fields such as titles can hold a translation for each language. It also formats dates and numbers for each language and reports text that has not been translated yet.
Install
composer require atannex/localization