phpinnacle / intl
International dictionaries, validation rules, and Filament components for Laravel.
1.0.0
2026-09-01 10:02 UTC
Requires
- php: ^8.4
- ext-intl: *
- codeat3/blade-phosphor-icons: ^2.4
- filament/filament: ^4.0|^5.0
- spatie/laravel-package-tools: ^1.92
- symfony/intl: ^7.2|^8.0
This package is auto-updated.
Last update: 2026-09-01 15:41:31 UTC
README
phpinnacle/intl provides Symfony Intl-backed country, language, locale, and timezone dictionaries together with Laravel validation and Filament components.
Installation
composer require phpinnacle/intl
Laravel discovers the package provider and translations automatically.
Dictionaries
use PHPinnacle\Intl\Countries; use PHPinnacle\Intl\Languages; use PHPinnacle\Intl\Locales; use PHPinnacle\Intl\Timezones; Countries::list(); Countries::name('PL'); Languages::exists('eng'); Locales::default(); Timezones::name('Europe/Warsaw');
Country codes are ISO 3166-1 alpha-2. Language codes use ISO 639-2 alpha-3 values. The synthetic Countries::OTHER, Languages::OTHER, and Locales::OTHER values are supported.
Validation
use PHPinnacle\Intl\Rules\CountryCode; use PHPinnacle\Intl\Rules\LanguageCode; return [ 'country' => [new CountryCode], 'language' => [new LanguageCode], ];
Filament
use PHPinnacle\Intl\Filters\CountryFilter; use PHPinnacle\Intl\Forms\CountryPicker; use PHPinnacle\Intl\Forms\LanguagePicker; use PHPinnacle\Intl\Forms\LocalePicker; use PHPinnacle\Intl\Forms\TimezonePicker; CountryPicker::make('country'); LanguagePicker::make('language'); LocalePicker::make('locale'); TimezonePicker::make('timezone'); CountryFilter::make();
License
The MIT License (MIT). See License File.