- Support of PHP 8.4 (See PR #80)
- Common name of country
\Sokil\IsoCodes\Database\Countries\Country::getCommonName
- Flag of country
\Sokil\IsoCodes\Database\Countries\Country::getFlag
- Auth release fix. Swallow clone does not clone tags required to set version in README
- 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.
- Stand With Ukraine
- Fix #53 - Compatibility with php 8.1
- Fixes in
update_iso_codes_db.sh
- 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.sh
signature changed to{mode} {base_dir} [{build_dir}]
. See installation notes for more info.
- Database version: iso-codes-4.5.0-178-g802915de from 2021-01-02 04:38
- Fix configure external directory to database files
SomeDatabase::getByNumericCode
now accept strings instead of ints,SomeEntity::getNumericCode
now return strings
- Allow to configure own translation driver
- 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
- Bug #25 fixed, \Sokil\IsoCodes\Database\Countries::getByNumericCode now accept strings instead of ints
- Database version: 4.5.0-99-g3feba234 from 2020-09-22 23:33
- Database version: 4.2-515-g7c579bb0 from 2020-05-29 01:27
- Database version: 4.2-299-gc0e8506 from 2019-11-28 08:56
- Database version: 4.2-277-g3d1d2f11 from 2019-10-23 22:24
- Database version: iso-codes-4.2-202-gfefebff3 from 2019-08-28 23:03
- Remove stub class \Sokil\IsoCodes, use \Sokil\IsoCodes\IsoCodesFactory instead
- Database version: iso-codes-4.2-147-gcadebc34
- PHP >=7.1 required.
- Cluster index is now lazy loaded. If you use iterator methods directly to iterate through all database,
you must call
rewind
first. - Factory now creates database instances but not store them, so next call of factory method will create new instance.
- Subdivisions and languages databases are large, so they have now optimisation to load entries from separate files instead of one single file..
- Database version: iso-codes-4.2-202-gfefebff3 from 2019-08-28 23:05
- Added possibility to configure directory with databases and messages, and manually update them without updating composer
- Constants
AbstractDatabase::DATABASE_PATH
andAbstractDatabase::MESSAGES_PATH
now contain directory name instead of directory path
AbstractDatabase::find()
now returns null when $fieldValue not found in index instead of throwing exception
- Updated pkg-isocodes database. Added update script.
- Replace class
\Sokil\IsoCodes
with\Sokil\IsoCodes\IsoCodesFactory
. First is deprecated now. - Removed Historic currencies
- Moved database classes from
\Sokil\IsoCodes\*
to\Sokil\IsoCodes\Database
- Entry's public properties replaced with getters
- Completely rewritted country's subdivisions database