Releases: gladchinda/keygen-php
Keygen PHP - Version 2.0.0(Alpha)
2.0.0-alpha Modified README to reflect version.
Keygen PHP - Version 1.1.2
Keygen PHP - Version 1.1.2
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.
Bug Fixes and Changes
Here are the bug fixes and changes in this version:
Fixed #6: alphanum error when length is 5 or less
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.
Fixed #7: Function mcrypt_create_iv() is deprecated
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.
Stripped trailing "=" from generated tokens
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.
Unit Testing
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.
Major bug fix on Generator Mutations.
1.1.1 Merge branch 'dev'
Major bug fix in Generator Mutations.
Merge pull request #3 from gladchinda/dev Major bug fixes.
First Release
First stable release.