International dictionaries, validation rules, and Filament components for Laravel.

Maintainers

Package info

github.com/phpinnacle/intl

pkg:composer/phpinnacle/intl

Transparency log

Statistics

Installs: 13

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-09-01 10:02 UTC

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.