sokil/php-isocodes
ISO country, subdivision, language, currency and script definitions and their translations. Based on pythons pycountry and Debian's iso-codes.
4.4.0
2.8M downloads/mo
#2140 most downloaded on Packagist
sokil/php-isocodes
What this package is like to depend on
Last release 11 months ago
16 Sep 2025
Ships unpredictably
gaps range from 2 weeks to 1.5 years
Some releases are documented
notes for 23 of 59 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
59 releases · first in 2014
1 release in the last 12 months
see the full history below
Release timeline
58 releases · Jul 2014 to Sep 2025Releases
latest 59-
4.4.016 Sep 2025 -
4.3.006 Jul 2025Release notes
Open source →Changed
- Removed support of PHP less than PHP 7.4
- Added cache dir for Symfony translation driver
-
4.2.111 Dec 2024 -
4.2.011 Jun 2023Release notes
Open source →Added
- Common name of country
\Sokil\IsoCodes\Database\Countries\Country::getCommonName - Flag of country
\Sokil\IsoCodes\Database\Countries\Country::getFlag
Release notes
Open source →Added
- Common name of country
\Sokil\IsoCodes\Database\Countries\Country::getCommonName - Flag of country
\Sokil\IsoCodes\Database\Countries\Country::getFlag
- Common name of country
-
4.1.107 Feb 2023Release notes
Open source →Fixes
- Auth release fix. Swallow clone does not clone tags required to set version in README
Release notes
Open source →Fixes
- Auth release fix. Swallow clone does not clone tags required to set version in README
-
4.1.016 Mar 2022Release notes
Open source →Fix: database entries may has no mo files. In this case exception occured. Locale "en" as default locale has
no mo files because all data already present in database. When no mo file found, default "en" value returns.Release notes
Open source →- Fix: database entries may has no mo files. In this case exception occured. Locale "en" as default locale has no mo files because all data already present in database. When no mo file found, default "en" value returns.
-
4.0.301 Mar 2022Release notes
Open source →Stand With Ukraine
Free world
As you already know, russia invaded Ukraine on 24 of February 2022, at 5.00 AM the armed forces of the Russian Federation attacked Ukraine. Please, Stand with Ukraine, stay tuned for updates on Ukraine’s official sources and channels in English and support Ukraine in its fight for freedom and democracy in Europe.
https://ukraine.ua/news/stand-with-ukraine/
Ways to support Ukraine
- Help to defend Ukraine — donate to Ukraine’s main charity fund — https://savelife.in.ua/en/donate/
- Help to defend Ukraine — donate to the fund of the National Bank of Ukraine:
-
4.0.225 Jan 2022 -
4.0.105 Dec 2021 -
4.0.002 Dec 2021Release notes
Open source →- Database and messages extracted to separate projects
sokil/php-isocodes-db-i18n and
sokil/php-isocodes-db-only. Current library may
be used directly only if manual update of files required.
See installation notes for more info. ./bin/update_iso_codes_db.shsignature changed to{mode} {base_dir} [{build_dir}].
See installation notes for more info.
Release notes
Open source →- Database and messages extracted to separate projects sokil/php-isocodes-db-i18n and sokil/php-isocodes-db-only. Current library may be used directly only if manual update of files required. See installation notes for more info.
./bin/update_iso_codes_db.shsignature changed to{mode} {base_dir} [{build_dir}]. See installation notes for more info.
- Database and messages extracted to separate projects
-
3.3.15no dateNothing published for this version
-
3.3.1406 Nov 2021Nothing published for this version
-
3.3.1304 Oct 2021Nothing published for this version
-
3.3.1215 Sep 2021Nothing published for this version
-
3.3.1110 Aug 2021Nothing published for this version
-
3.3.1002 Jul 2021Nothing published for this version
-
3.3.902 Jun 2021Nothing published for this version
-
3.3.802 May 2021Nothing published for this version
-
3.3.702 Apr 2021Nothing published for this version
-
3.3.617 Mar 2021Nothing published for this version
-
3.3.502 Mar 2021Nothing published for this version
-
3.3.417 Feb 2021Nothing published for this version
-
3.3.302 Feb 2021Nothing published for this version
-
3.3.219 Jan 2021Nothing published for this version
-
3.3.103 Jan 2021 -
3.3.020 Dec 2020Release notes
Open source →- Fix configure external directory to database files
SomeDatabase::getByNumericCodenow accept strings instead of ints,SomeEntity::getNumericCodenow return strings
-
3.2.013 Dec 2020 -
3.1.112 Dec 2020Release notes
Open source →- Database updated to version iso-codes-4.5.0-165-g46cea063 from 2020-12-12 19:09
- Fixed release scripts
- Configured Github Action to start automatic release process event 2nd day of month
-
3.1.012 Dec 2020Release notes
Open source →- Bug #25 fixed, \Sokil\IsoCodes\Database\Countries::getByNumericCode now accept strings instead of ints
-
3.0.622 Sep 2020 -
3.0.528 May 2020 -
3.0.428 Nov 2019 -
3.0.323 Oct 2019 -
3.0.228 Aug 2019 -
3.0.121 Jun 2019Release notes
Open source →- Remove stub class \Sokil\IsoCodes, use \Sokil\IsoCodes\IsoCodesFactory instead
- Database version: iso-codes-4.2-147-gcadebc34
-
3.0.001 Jun 2019Nothing published for this version
-
2.2.1028 Nov 2019Nothing published for this version
-
2.2.928 Aug 2019 -
2.2.821 Jun 2019Nothing published for this version
-
2.2.701 Jun 2019Nothing published for this version
-
2.2.610 Apr 2019Nothing published for this version
-
2.2.502 Apr 2019Nothing published for this version
-
2.2.402 Apr 2019Nothing published for this version
-
2.2.302 Mar 2019Nothing published for this version
-
2.2.231 Jan 2019Nothing published for this version
-
2.2.103 Jan 2019Nothing published for this version
-
2.2.029 Nov 2018Nothing published for this version
-
2.1.516 Nov 2018Nothing published for this version
-
2.1.413 Oct 2018Nothing published for this version
-
2.1.304 Sep 2018Nothing published for this version
-
2.1.220 Aug 2018Nothing published for this version
-
2.1.106 Jun 2018Nothing published for this version
-
2.0.313 Mar 2018Nothing published for this version
-
2.0.205 Jan 2018Nothing published for this version
-
2.0.115 Nov 2017Nothing published for this version
-
2.0.007 Nov 2017Nothing published for this version
-
1.0.118 Nov 2014Nothing published for this version
-
1.0.020 Jul 2014Nothing published for this version
-
2.108 May 2018Release notes
Open source →AbstractDatabase::find()now returns null when $fieldValue not found in index instead of throwing exception