gladcodes/keygen
A fluent PHP random key generator.
1.1.2
879K downloads/mo
#3998 most downloaded on Packagist
gladchinda/keygen-php
What this package is like to depend on
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
0 releases in the last 12 months
see the full history below
Release timeline
5 releases · Jan 2017 to Jul 2018Releases
latest 5-
2.0.0-alpha16 Jul 2018 pre-releaseNothing published for this version
-
1.1.215 Jul 2018Release notes
Open source →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 theRandomByteGeneratorto 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 therandom_bytes()function.Stripped trailing "=" from generated tokens
Random base64-encoded tokens generated by the
TokenGeneratorwill no longer contain trailing=character at any point. A slight modification has been made to theTokenGeneratorclass 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.
-
1.1.124 Feb 2017Nothing published for this version
-
1.1.024 Feb 2017Nothing published for this version
-
1.0.010 Jan 2017Nothing published for this version