NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #4069 most downloaded on Packagist
A fluent PHP random key generator.
Last release 8 years ago
no release in 18 months
Release timing varies
gaps range from 6 weeks to 1.4 years
Some releases are documented
notes for 1 of 4 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
5 releases · first in 2017
Nothing published for this version
Fixed #7 : Function mcrypt_create_iv() is deprecated
This version contains a couple of known bug fixes to the previous version of the Keygen PHP package. In addition to the bug fixes, unit tests have been added to ensure that the package works as expected.
This version is fully compatible with the previous version of the package and can be used interchangeably without resulting in any form of broken code.
Here are the bug fixes and changes in this version:
This bug caused an error to be thrown when attempting to create alphanumeric keys with length of 5 characters or less. The error is due to negative integer ranges passed to the mt_rand() function. This bug has been fixed and will no longer throw the stated error.
The mcrypt_create_iv() function is being used by the RandomByteGenerator to create random bytes. However, this function has been deprecated and is no longer supported in PHP versions >=7.2. Hence, the function has been replaced with the random_bytes() function.
Random base64-encoded tokens generated by the TokenGenerator will no longer contain trailing = character at any point. A slight modification has been made to the TokenGenerator class to ensure that this padding character is stripped-off from generated tokens.
Proper and extensive unit testing has been setup to ensure adequate functioning of the package. PHPUnit is used as a development dependency to properly test the package and all its features to ensure that it works as expected. The tests also have a very wide coverage over the source code of the package.
One column per quarter.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →