Releases: pda/flexihash
Releases · pda/flexihash
Ecosystem Upgraded: PHP 7.2 minimum
Fix continuous integration support
Sort out dev dependencies for tests to pass under 5.4
Bugfix for MD5 target leaking
PHP treats numeric strings as integers when used as an array key. This means they pop out of order and cause incorrect remapping when a target is removed.
This release fixes that issue with thanks to @kojik1010 and @banks.
PSR-4 and namespacing
Changes
- Namespacing.
- PSR-4 autoloading.
- Reorganisation of files.
- Full PSR-2 support.
- Drops PHP<5.4 support.
Upgrading
This is a breaking update. The class names have changed. To upgrade you will need to:
- Update any references to
Flexihash
toFlexihash\Flexihash
. - Update any references to the hashers from (for example)
Flexihash_Crc32Hasher
toFlexihash\Hasher\Crc32Hasher
. - Catch
Flexihash\Exception
instead of 'Flexihash_Exception`.
Initial Composer Release
Install with composer require flexihash/flexihash
- Remove legacy autoloader.
- Migrate tests to PHPUnit.
- Get as close to PSR-2 as possible without changing class names.
- Setup automatic testing with Travis.
- Give code coverage information with Coveralls.
Posterity Release
This is the repository in it's historical state.
It does not support composer , PSR or PHPUnit.
You are recommended to use v1.0.0 as a minimum unless you have a good reason.