prinsfrank/standards
Daily-updated PHP 8.1+ enum collection of international standards (ISO, IANA, SIX, Library of Congress, etc.). Easy Composer install, strong typing for codes like countries, currencies, languages, and more—kept current via automated upstream sync.
pycountry or i18n libraries)."This package replaces manual maintenance of global standards (countries, currencies, languages) with an automatically updated, type-safe PHP library. It cuts development time for validation, localization, and compliance features—like ensuring a user’s selected country triggers the correct currency or language. For example, it can auto-format phone numbers or detect supported languages in HTTP requests, reducing frontend/backend friction. The MIT license and active maintenance make it a low-risk, high-reward choice for scaling globally."
*"Problem: Managing ISO standards (e.g., country codes, HTTP statuses) manually leads to errors, outdated data, and duplicated effort. Solution: This package provides PHP 8.1+ enums for all major standards, with:
CountryAlpha2::from('XX') throws an error).CountryAlpha3::NLD->toAlpha2()).function createOrder(CountryAlpha2 $country)).CountryAlpha2::FR->getNameInLanguage(LanguageAlpha2::French)).composer.json and integrate into validation layers (e.g., Laravel Form Requests)."**"This enables smart defaults for global features:
LanguageTag::fromRequest()).How can I help you explore Laravel packages today?