league/iso3166
PHP library providing up-to-date ISO 3166-1 country data. Look up countries by name, alpha-2, alpha-3, or numeric code and get normalized details like country name, codes, and currency information.
The package provides a lightweight, in-memory data provider for ISO 3166-1 country codes with minimal dependencies, making it highly suitable for PHP-based systems requiring standardized country data. Its architecture is simple and stateless, with no external service dependencies—ideal for validation, form processing, or data normalization tasks. Integration feasibility is high due to Composer-based installation and clear method-based APIs (alpha2(), name(), etc.). Technical risks are low but require scrutiny: the "Last release" date (2026-01-02) appears erroneous (as changelogs show 2023-2024 updates), and while the PHP League maintains it, the "Dependents: 0" metric suggests limited real-world adoption. Key questions include: How frequently is the underlying data refreshed (e.g., Kosovo added in v4.3.2)? What is the process for handling ISO standard changes (e.g., currency updates like Croatia’s EUR adoption)? Does it support historical data for deprecated country codes (e.g., Swaziland → Eswatini)?
Stack fit is excellent for Laravel applications: it requires no framework-specific configuration
How can I help you explore Laravel packages today?