Released: 2018-07-19
.gitattributes
, etc.)Released: 2018-01-19
glob()
to find /sys/class/net/*/address
files on Linux, glob()
encountered errors, returning false
instead of an empty array, causing array_map()
to emit warnings since its second parameter was not an array; this release gracefully handles cases where glob()
returns false
#203DefaultTimeGenerator
and switching to random_int()
from mt_rand()
for better random numbers #206Released: 2018-01-13
Released: 2017-09-22
random_bytes()
when generating random nodesReleased: 2017-08-04
Uuid::UUID_TYPE_TIME
Uuid::UUID_TYPE_IDENTIFIER
Uuid::UUID_TYPE_HASH_MD5
Uuid::UUID_TYPE_RANDOM
Uuid::UUID_TYPE_HASH_SHA1
Released: 2017-03-26
Released: 2017-03-18
InvalidUuidStringException
, thrown when attempting to decode an invalid string UUID; this does not introduce any BC issues, since the new exception inherits from the previously used InvalidArgumentException
#162str_pad()
and dechex()
instead of sprintf()
) #160Released: 2016-11-22
Released: 2016-10-02
Released: 2016-08-02
OrderedTimeCodec
to store UUID in an optimized way for InnoDB (#117, #118).RandomNodeProvider
to prevent invalid node generation (#129).Released: 2016-04-23
Released: 2016-04-23
TimestampFirstCombCodec
and TimestampLastCombCodec
codecs.CombGenerator
for COMB sequential UUIDs.Released: 2016-03-22
Released: 2016-02-17
Released: 2015-12-17
Released: 2015-10-21
Released: 2015-09-28
The 3.0.0 release represents a significant step for the ramsey/uuid library. While the simple and familiar API used in previous versions remains intact, this release provides greater flexibility to integrators, including the ability to inject your own number generators, UUID codecs, node and time providers, and more.
uuid
console application has been moved to ramsey/uuid-console.Uuid::VERSION
package version constant has been removed.Released: 2015-08-31
DegradedNumberConverter::fromHex()
.Released: 2015-07-28
timeConverter
and timeProvider
properties, setters, and getters in both FeatureSet
and UuidFactory
as those are now exclusively used by the default TimeGenerator
.setTimeGenerator
method on UuidFactory
to override the default time generator.PeclUuidTimeGenerator
via FeatureSet
.Released: 2015-07-28
PeclUuidFactory
in favor of using pecl-uuid with generators.TimeGeneratorInterface
to allow for other sources to generate version 1 UUIDs in this library.PeclUuidTimeGenerator
and PeclUuidRandomGenerator
for creating version 1 or version 4 UUIDs using the pecl-uuid extension.RandomBytesGenerator
for use with PHP 7. ramsey/uuid will default to use this generator when running on PHP 7.RandomLibAdapter
now defaults to a medium-strength generator with ircmaxell/random-lib. This is configurable, so other generator strengths may be used.Released: 2015-07-16
uuid
console application has been moved to ramsey/uuid-console.Uuid::VERSION
package version constant has been removed.Uuid
class is no longer marked as final
. Everything is now based around interfaces and factories, allowing you to use this package as a base to implement other kinds of UUIDs with different dependencies.UuidFactory
and/or extending FeatureSet
, you may override any package defaults, injecting your own dependencies.OpenSslGenerator
(used if openssl_random_pseudo_bytes()
is present) and the fallback MtRandGenerator
, you may use the bundled CombGenerator
for sequential UUIDs or the RandomLibAdapter
if using ircmaxell/random-lib.FeatureSet
to use GUIDs.DegradedUuid
(which extends Uuid
, which implements UuidInterface
).Released: 2016-03-22
Released: 2015-12-17
Released: 2015-08-31
Uuid::calculateUuidTime()
.Released: 2015-07-23
Released: 2015-06-16
passthru()
and output buffering in getIfconfig()
.Released: 2014-11-09
fromInteger()
method to create UUIDs from string integer or \Moontoast\Math\BigNumber
.Released: 2014-10-29
generateBytes()
from foreach
to for
; see #33toString()
in README examples to avoid confusionReleased: 2014-08-27
mt_rand
used in version 4 UUIDsReleased: 2014-07-28
Released: 2014-02-19
Released: 2014-01-31
Uuid::VALID_PATTERN
)Released: 2014-01-27
uuid
console application could not find the Composer autoloader when installed in another projectReleased: 2014-01-17
uuid
console application for generating and decoding UUIDs from CLI (run ./bin/uuid
for details)Uuid::getInteger()
to retrieve a Moontoast\Math\BigNumber representation of the 128-bit integer representing the UUIDUuid::getHex()
to retrieve the hexadecimal representation of the UUIDReleased: 2013-10-30
openssl_random_pseudo_bytes()
, if available, to generate random bytes, by merging in PR #15 from @dfreudenbergerReleased: 2013-07-29
Uuid::getVersion()
now returns null if the UUID isn't an RFC 4122 variantUuid::fromString()
now supports a 128-bit integer formatted as a hexadecimal string (UUID without dashes)Released: 2013-07-16
Uuid::fromBytes()
by merging in PR #14 from @asm89Released: 2013-07-04
Doctrine\UuidType::requiresSQLCommentHint()
method by merging in PR #13 from @zerrvox"minimum-stability": "dev"
from composer.jsonReleased: 2013-07-03
Released: 2013-04-29
Uuid::isValid()
method, reported by @ocubom in PR #11Released: 2013-04-15
Uuid::isValid()
method for checking whether a string is a valid UUIDReleased: 2013-02-11
Uuid
class is now marked as "final"Uuid::getLeastSignificantBits()
no longer returns an integer on 64-bit platforms; it requires moontoast/math
Uuid::getMostSignificantBits()
no longer returns an integer on 64-bit platforms; it requires moontoast/math
UnsupportedOperationException
to the Exception
subnamespaceReleased: 2012-11-29
Released: 2012-08-27
final
keyword from Uuid
classReleased: 2012-08-06
Doctrine\UuidType
as a field mapping type for the Doctrine Database Abstraction Layer (DBAL)Released: 2012-07-19