Skip to content

Country

Viames Marino edited this page Oct 19, 2026 · 2 revisions

Pair framework: Country

Pair\Models\Country represents country metadata used by locale and language features.

Main behavior

  • _init() configures fields and constraints.

Implementation example

use Pair\Models\Country;

$it = Country::firstWhere('code', 'IT');
if ($it) {
	echo htmlspecialchars($it->englishName, ENT_QUOTES, 'UTF-8');
}

Notes

  • Used by language and localization layers.

See also: Language, Locale.

Clone this wiki locally