create-prisma-php-app 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +9 -0
- package/README.md +158 -0
- package/composer.json +23 -0
- package/composer.lock +812 -0
- package/dist/bootstrap.php +4 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/prisma-client-php/index.enc +1 -0
- package/dist/node_modules/prisma-client-php/index.js +2 -0
- package/dist/node_modules/prisma-client-php/key.enc +1 -0
- package/dist/node_modules/prisma-client-php/package.json +7 -0
- package/dist/prisma/schema.prisma +32 -0
- package/dist/prisma/seed.js +68 -0
- package/dist/public/assets/images/prisma-php.png +0 -0
- package/dist/public/css/styles.css +0 -0
- package/dist/public/css/tailwind.css +3 -0
- package/dist/public/favicon.ico +0 -0
- package/dist/public/index.php +64 -0
- package/dist/settings/paths.php +10 -0
- package/dist/settings/project-settings.js +6 -0
- package/dist/src/app/api/api.php +39 -0
- package/dist/src/app/classes/Validator.php +77 -0
- package/dist/src/app/model/IModel.php +22 -0
- package/package.json +35 -0
- package/tsconfig.json +110 -0
- package/vendor/autoload.php +25 -0
- package/vendor/brick/math/.editorconfig +15 -0
- package/vendor/brick/math/.gitattributes +11 -0
- package/vendor/brick/math/.github/FUNDING.yml +1 -0
- package/vendor/brick/math/.github/workflows/ci.yml +80 -0
- package/vendor/brick/math/CHANGELOG.md +445 -0
- package/vendor/brick/math/LICENSE +20 -0
- package/vendor/brick/math/README.md +247 -0
- package/vendor/brick/math/composer.json +34 -0
- package/vendor/brick/math/phpunit.php +51 -0
- package/vendor/brick/math/phpunit.xml +13 -0
- package/vendor/brick/math/psalm.xml +28 -0
- package/vendor/brick/math/random-tests.php +162 -0
- package/vendor/brick/math/src/BigDecimal.php +786 -0
- package/vendor/brick/math/src/BigInteger.php +1079 -0
- package/vendor/brick/math/src/BigNumber.php +512 -0
- package/vendor/brick/math/src/BigRational.php +445 -0
- package/vendor/brick/math/src/Exception/DivisionByZeroException.php +35 -0
- package/vendor/brick/math/src/Exception/IntegerOverflowException.php +23 -0
- package/vendor/brick/math/src/Exception/MathException.php +12 -0
- package/vendor/brick/math/src/Exception/NegativeNumberException.php +12 -0
- package/vendor/brick/math/src/Exception/NumberFormatException.php +33 -0
- package/vendor/brick/math/src/Exception/RoundingNecessaryException.php +19 -0
- package/vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php +75 -0
- package/vendor/brick/math/src/Internal/Calculator/GmpCalculator.php +108 -0
- package/vendor/brick/math/src/Internal/Calculator/NativeCalculator.php +581 -0
- package/vendor/brick/math/src/Internal/Calculator.php +676 -0
- package/vendor/brick/math/src/RoundingMode.php +107 -0
- package/vendor/brick/math/tests/AbstractTestCase.php +86 -0
- package/vendor/brick/math/tests/BigDecimalTest.php +2596 -0
- package/vendor/brick/math/tests/BigIntegerTest.php +3782 -0
- package/vendor/brick/math/tests/BigNumberTest.php +53 -0
- package/vendor/brick/math/tests/BigRationalTest.php +993 -0
- package/vendor/brick/math/tests/CalculatorDetectTest.php +25 -0
- package/vendor/brick/math/tests/Internal/Calculator/NativeCalculatorTest.php +87 -0
- package/vendor/composer/ClassLoader.php +579 -0
- package/vendor/composer/InstalledVersions.php +359 -0
- package/vendor/composer/LICENSE +21 -0
- package/vendor/composer/autoload_classmap.php +15 -0
- package/vendor/composer/autoload_files.php +13 -0
- package/vendor/composer/autoload_namespaces.php +9 -0
- package/vendor/composer/autoload_psr4.php +20 -0
- package/vendor/composer/autoload_real.php +50 -0
- package/vendor/composer/autoload_static.php +122 -0
- package/vendor/composer/installed.json +825 -0
- package/vendor/composer/installed.php +132 -0
- package/vendor/composer/platform_check.php +26 -0
- package/vendor/firebase/php-jwt/.gitattributes +9 -0
- package/vendor/firebase/php-jwt/.github/release-please.yml +3 -0
- package/vendor/firebase/php-jwt/.github/workflows/tests.yml +57 -0
- package/vendor/firebase/php-jwt/.php-cs-fixer.dist.php +24 -0
- package/vendor/firebase/php-jwt/CHANGELOG.md +170 -0
- package/vendor/firebase/php-jwt/LICENSE +30 -0
- package/vendor/firebase/php-jwt/README.md +424 -0
- package/vendor/firebase/php-jwt/composer.json +42 -0
- package/vendor/firebase/php-jwt/phpstan.neon.dist +5 -0
- package/vendor/firebase/php-jwt/phpunit.xml.dist +18 -0
- package/vendor/firebase/php-jwt/src/BeforeValidException.php +18 -0
- package/vendor/firebase/php-jwt/src/CachedKeySet.php +268 -0
- package/vendor/firebase/php-jwt/src/ExpiredException.php +18 -0
- package/vendor/firebase/php-jwt/src/JWK.php +349 -0
- package/vendor/firebase/php-jwt/src/JWT.php +669 -0
- package/vendor/firebase/php-jwt/src/JWTExceptionWithPayloadInterface.php +20 -0
- package/vendor/firebase/php-jwt/src/Key.php +64 -0
- package/vendor/firebase/php-jwt/src/SignatureInvalidException.php +7 -0
- package/vendor/firebase/php-jwt/tests/CachedKeySetTest.php +598 -0
- package/vendor/firebase/php-jwt/tests/JWKTest.php +172 -0
- package/vendor/firebase/php-jwt/tests/JWTTest.php +543 -0
- package/vendor/firebase/php-jwt/tests/data/ec-jwkset.json +40 -0
- package/vendor/firebase/php-jwt/tests/data/ecdsa-private.pem +18 -0
- package/vendor/firebase/php-jwt/tests/data/ecdsa-public.pem +9 -0
- package/vendor/firebase/php-jwt/tests/data/ecdsa256-private.pem +4 -0
- package/vendor/firebase/php-jwt/tests/data/ecdsa384-private.pem +6 -0
- package/vendor/firebase/php-jwt/tests/data/ecdsa384-public.pem +5 -0
- package/vendor/firebase/php-jwt/tests/data/ed25519-1.pub +1 -0
- package/vendor/firebase/php-jwt/tests/data/ed25519-1.sec +1 -0
- package/vendor/firebase/php-jwt/tests/data/ed25519-jwkset.json +11 -0
- package/vendor/firebase/php-jwt/tests/data/rsa-jwkset.json +18 -0
- package/vendor/firebase/php-jwt/tests/data/rsa-with-passphrase.pem +42 -0
- package/vendor/firebase/php-jwt/tests/data/rsa1-private.pem +27 -0
- package/vendor/firebase/php-jwt/tests/data/rsa1-public.pub +9 -0
- package/vendor/firebase/php-jwt/tests/data/rsa2-private.pem +27 -0
- package/vendor/firebase/php-jwt/tests/data/secp256k1-private.pem +5 -0
- package/vendor/firebase/php-jwt/tests/data/secp256k1-public.pem +4 -0
- package/vendor/graham-campbell/result-type/.gitattributes +9 -0
- package/vendor/graham-campbell/result-type/.github/CODE_OF_CONDUCT.md +132 -0
- package/vendor/graham-campbell/result-type/.github/CONTRIBUTING.md +31 -0
- package/vendor/graham-campbell/result-type/.github/FUNDING.yml +2 -0
- package/vendor/graham-campbell/result-type/.github/SECURITY.md +14 -0
- package/vendor/graham-campbell/result-type/.github/workflows/tests.yml +40 -0
- package/vendor/graham-campbell/result-type/CHANGELOG.md +43 -0
- package/vendor/graham-campbell/result-type/LICENSE +21 -0
- package/vendor/graham-campbell/result-type/README.md +42 -0
- package/vendor/graham-campbell/result-type/composer.json +33 -0
- package/vendor/graham-campbell/result-type/phpunit.xml.dist +13 -0
- package/vendor/graham-campbell/result-type/src/Error.php +121 -0
- package/vendor/graham-campbell/result-type/src/Result.php +69 -0
- package/vendor/graham-campbell/result-type/src/Success.php +120 -0
- package/vendor/graham-campbell/result-type/tests/ResultTest.php +95 -0
- package/vendor/hidehalo/nanoid-php/.editorconfig +15 -0
- package/vendor/hidehalo/nanoid-php/.gitattributes +8 -0
- package/vendor/hidehalo/nanoid-php/.github/workflows/php.yml +49 -0
- package/vendor/hidehalo/nanoid-php/.styleci.yml +1 -0
- package/vendor/hidehalo/nanoid-php/CHANGELOG.md +36 -0
- package/vendor/hidehalo/nanoid-php/CODE_OF_CONDUCT.md +74 -0
- package/vendor/hidehalo/nanoid-php/CONTRIBUTING.md +32 -0
- package/vendor/hidehalo/nanoid-php/ISSUE_TEMPLATE.md +27 -0
- package/vendor/hidehalo/nanoid-php/LICENSE.md +21 -0
- package/vendor/hidehalo/nanoid-php/PULL_REQUEST_TEMPLATE.md +43 -0
- package/vendor/hidehalo/nanoid-php/README.md +108 -0
- package/vendor/hidehalo/nanoid-php/benchmark/benchmark.php +24 -0
- package/vendor/hidehalo/nanoid-php/composer.json +62 -0
- package/vendor/hidehalo/nanoid-php/examples/basic_usage.php +24 -0
- package/vendor/hidehalo/nanoid-php/examples/custom_formated.php +29 -0
- package/vendor/hidehalo/nanoid-php/phpunit.xml +31 -0
- package/vendor/hidehalo/nanoid-php/src/Client.php +120 -0
- package/vendor/hidehalo/nanoid-php/src/Core.php +31 -0
- package/vendor/hidehalo/nanoid-php/src/CoreInterface.php +19 -0
- package/vendor/hidehalo/nanoid-php/src/Generator.php +13 -0
- package/vendor/hidehalo/nanoid-php/src/GeneratorInterface.php +13 -0
- package/vendor/hidehalo/nanoid-php/tests/ClientTest.php +76 -0
- package/vendor/hidehalo/nanoid-php/tests/CoreTest.php +37 -0
- package/vendor/hidehalo/nanoid-php/tests/GeneratorTest.php +34 -0
- package/vendor/hidehalo/nanoid-php/tests/Support/DummyGenerator.php +20 -0
- package/vendor/paragonie/random_compat/.gitattributes +14 -0
- package/vendor/paragonie/random_compat/.scrutinizer.yml +4 -0
- package/vendor/paragonie/random_compat/.travis.yml +59 -0
- package/vendor/paragonie/random_compat/CHANGELOG.md +3 -0
- package/vendor/paragonie/random_compat/LICENSE +22 -0
- package/vendor/paragonie/random_compat/RATIONALE.md +36 -0
- package/vendor/paragonie/random_compat/README.md +232 -0
- package/vendor/paragonie/random_compat/SECURITY.md +108 -0
- package/vendor/paragonie/random_compat/build-phar.sh +5 -0
- package/vendor/paragonie/random_compat/composer.json +34 -0
- package/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey +5 -0
- package/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey.asc +11 -0
- package/vendor/paragonie/random_compat/lib/random.php +32 -0
- package/vendor/paragonie/random_compat/other/build_phar.php +57 -0
- package/vendor/paragonie/random_compat/other/ide_stubs/COM.php +20 -0
- package/vendor/paragonie/random_compat/other/ide_stubs/README.md +7 -0
- package/vendor/paragonie/random_compat/other/ide_stubs/com_exception.php +11 -0
- package/vendor/paragonie/random_compat/other/ide_stubs/libsodium.php +90 -0
- package/vendor/paragonie/random_compat/phpunit.sh +60 -0
- package/vendor/paragonie/random_compat/phpunit.xml.dist +31 -0
- package/vendor/paragonie/random_compat/psalm-autoload.php +9 -0
- package/vendor/paragonie/random_compat/psalm.xml +19 -0
- package/vendor/paragonie/random_compat/tests/full/DieHardTest.php +61 -0
- package/vendor/paragonie/random_compat/tests/full/StatTest.php +52 -0
- package/vendor/paragonie/random_compat/tests/specific/capicom.php +7 -0
- package/vendor/paragonie/random_compat/tests/specific/dev_urandom.php +7 -0
- package/vendor/paragonie/random_compat/tests/specific/libsodium.php +7 -0
- package/vendor/paragonie/random_compat/tests/specific/libsodium_legacy.php +7 -0
- package/vendor/paragonie/random_compat/tests/specific/mcrypt.php +7 -0
- package/vendor/paragonie/random_compat/tests/unit/RandomBytesTest.php +80 -0
- package/vendor/paragonie/random_compat/tests/unit/RandomIntTest.php +63 -0
- package/vendor/paragonie/random_compat/tests/unit/UtilityTest.php +95 -0
- package/vendor/paragonie/random_compat/tests/unit_with_basedir/RandomBytesTest.php +100 -0
- package/vendor/paragonie/random_compat/tests/unit_with_basedir/RandomIntTest.php +82 -0
- package/vendor/paragonie/random_compat/tests/unit_with_basedir/UtilityTest.php +95 -0
- package/vendor/phpoption/phpoption/.gitattributes +14 -0
- package/vendor/phpoption/phpoption/.github/CODE_OF_CONDUCT.md +132 -0
- package/vendor/phpoption/phpoption/.github/CONTRIBUTING.md +30 -0
- package/vendor/phpoption/phpoption/.github/FUNDING.yml +2 -0
- package/vendor/phpoption/phpoption/.github/SECURITY.md +14 -0
- package/vendor/phpoption/phpoption/.github/workflows/static.yml +74 -0
- package/vendor/phpoption/phpoption/.github/workflows/tests.yml +40 -0
- package/vendor/phpoption/phpoption/LICENSE +201 -0
- package/vendor/phpoption/phpoption/Makefile +26 -0
- package/vendor/phpoption/phpoption/README.md +194 -0
- package/vendor/phpoption/phpoption/composer.json +52 -0
- package/vendor/phpoption/phpoption/phpstan-baseline.neon +32 -0
- package/vendor/phpoption/phpoption/phpstan.neon.dist +8 -0
- package/vendor/phpoption/phpoption/phpunit.xml.dist +13 -0
- package/vendor/phpoption/phpoption/psalm.xml +12 -0
- package/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php +175 -0
- package/vendor/phpoption/phpoption/src/PhpOption/None.php +136 -0
- package/vendor/phpoption/phpoption/src/PhpOption/Option.php +434 -0
- package/vendor/phpoption/phpoption/src/PhpOption/Some.php +169 -0
- package/vendor/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php +77 -0
- package/vendor/phpoption/phpoption/tests/PhpOption/Tests/LazyOptionTest.php +200 -0
- package/vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php +153 -0
- package/vendor/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php +160 -0
- package/vendor/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php +194 -0
- package/vendor/phpoption/phpoption/tests/bootstrap.php +8 -0
- package/vendor/phpoption/phpoption/vendor-bin/phpstan/composer.json +8 -0
- package/vendor/phpoption/phpoption/vendor-bin/psalm/composer.json +8 -0
- package/vendor/ramsey/uuid/.editorconfig +16 -0
- package/vendor/ramsey/uuid/.gitattributes +26 -0
- package/vendor/ramsey/uuid/.github/CODEOWNERS +1 -0
- package/vendor/ramsey/uuid/.github/FUNDING.yml +2 -0
- package/vendor/ramsey/uuid/.github/ISSUE_TEMPLATE/Bug_Report.md +35 -0
- package/vendor/ramsey/uuid/.github/ISSUE_TEMPLATE/Feature_Request.md +31 -0
- package/vendor/ramsey/uuid/.github/ISSUE_TEMPLATE/Question.md +19 -0
- package/vendor/ramsey/uuid/.github/ISSUE_TEMPLATE/config.yml +1 -0
- package/vendor/ramsey/uuid/.github/dependabot.yml +15 -0
- package/vendor/ramsey/uuid/.github/pull_request_template.md +27 -0
- package/vendor/ramsey/uuid/.github/workflows/continuous-integration.yml +181 -0
- package/vendor/ramsey/uuid/.github/workflows/merge-dependabot-upgrades.yml +24 -0
- package/vendor/ramsey/uuid/.readthedocs.yml +11 -0
- package/vendor/ramsey/uuid/CHANGELOG.md +1511 -0
- package/vendor/ramsey/uuid/CODE_OF_CONDUCT.md +73 -0
- package/vendor/ramsey/uuid/CONTRIBUTING.md +171 -0
- package/vendor/ramsey/uuid/LICENSE +19 -0
- package/vendor/ramsey/uuid/README.md +83 -0
- package/vendor/ramsey/uuid/SECURITY.md +170 -0
- package/vendor/ramsey/uuid/build/.gitignore +6 -0
- package/vendor/ramsey/uuid/build/cache/.gitkeep +0 -0
- package/vendor/ramsey/uuid/build/logs/.gitkeep +0 -0
- package/vendor/ramsey/uuid/captainhook.json +105 -0
- package/vendor/ramsey/uuid/codecov.yml +29 -0
- package/vendor/ramsey/uuid/composer.json +106 -0
- package/vendor/ramsey/uuid/composer.lock +7208 -0
- package/vendor/ramsey/uuid/docs/Makefile +20 -0
- package/vendor/ramsey/uuid/docs/README.md +36 -0
- package/vendor/ramsey/uuid/docs/_static/.gitkeep +0 -0
- package/vendor/ramsey/uuid/docs/conf.py +103 -0
- package/vendor/ramsey/uuid/docs/copyright.rst +18 -0
- package/vendor/ramsey/uuid/docs/customize/calculators.rst +75 -0
- package/vendor/ramsey/uuid/docs/customize/factory.rst +93 -0
- package/vendor/ramsey/uuid/docs/customize/ordered-time-codec.rst +86 -0
- package/vendor/ramsey/uuid/docs/customize/timestamp-first-comb-codec.rst +72 -0
- package/vendor/ramsey/uuid/docs/customize/validators.rst +39 -0
- package/vendor/ramsey/uuid/docs/customize.rst +56 -0
- package/vendor/ramsey/uuid/docs/database.rst +260 -0
- package/vendor/ramsey/uuid/docs/faq.rst +132 -0
- package/vendor/ramsey/uuid/docs/index.rst +51 -0
- package/vendor/ramsey/uuid/docs/introduction.rst +31 -0
- package/vendor/ramsey/uuid/docs/nonstandard/guid.rst +152 -0
- package/vendor/ramsey/uuid/docs/nonstandard/other.rst +49 -0
- package/vendor/ramsey/uuid/docs/nonstandard/version6.rst +17 -0
- package/vendor/ramsey/uuid/docs/nonstandard.rst +40 -0
- package/vendor/ramsey/uuid/docs/quickstart.rst +112 -0
- package/vendor/ramsey/uuid/docs/reference/calculators.rst +168 -0
- package/vendor/ramsey/uuid/docs/reference/exceptions.rst +92 -0
- package/vendor/ramsey/uuid/docs/reference/fields-fieldsinterface.rst +16 -0
- package/vendor/ramsey/uuid/docs/reference/guid-fields.rst +13 -0
- package/vendor/ramsey/uuid/docs/reference/guid-guid.rst +20 -0
- package/vendor/ramsey/uuid/docs/reference/helper.rst +62 -0
- package/vendor/ramsey/uuid/docs/reference/name-based-namespaces.rst +31 -0
- package/vendor/ramsey/uuid/docs/reference/nonstandard-fields.rst +13 -0
- package/vendor/ramsey/uuid/docs/reference/nonstandard-uuid.rst +20 -0
- package/vendor/ramsey/uuid/docs/reference/nonstandard-uuidv6.rst +34 -0
- package/vendor/ramsey/uuid/docs/reference/rfc4122-fieldsinterface.rst +78 -0
- package/vendor/ramsey/uuid/docs/reference/rfc4122-uuidinterface.rst +20 -0
- package/vendor/ramsey/uuid/docs/reference/rfc4122-uuidv1.rst +21 -0
- package/vendor/ramsey/uuid/docs/reference/rfc4122-uuidv2.rst +47 -0
- package/vendor/ramsey/uuid/docs/reference/rfc4122-uuidv3.rst +13 -0
- package/vendor/ramsey/uuid/docs/reference/rfc4122-uuidv4.rst +13 -0
- package/vendor/ramsey/uuid/docs/reference/rfc4122-uuidv5.rst +13 -0
- package/vendor/ramsey/uuid/docs/reference/rfc4122-uuidv6.rst +31 -0
- package/vendor/ramsey/uuid/docs/reference/rfc4122-uuidv7.rst +20 -0
- package/vendor/ramsey/uuid/docs/reference/rfc4122-uuidv8.rst +13 -0
- package/vendor/ramsey/uuid/docs/reference/rfc4122-version.rst +87 -0
- package/vendor/ramsey/uuid/docs/reference/timebaseduuidinterface.rst +16 -0
- package/vendor/ramsey/uuid/docs/reference/types.rst +79 -0
- package/vendor/ramsey/uuid/docs/reference/uuid.rst +161 -0
- package/vendor/ramsey/uuid/docs/reference/uuidfactoryinterface.rst +102 -0
- package/vendor/ramsey/uuid/docs/reference/uuidinterface.rst +60 -0
- package/vendor/ramsey/uuid/docs/reference/validators.rst +34 -0
- package/vendor/ramsey/uuid/docs/reference/variant.rst +32 -0
- package/vendor/ramsey/uuid/docs/reference.rst +37 -0
- package/vendor/ramsey/uuid/docs/requirements.txt +3 -0
- package/vendor/ramsey/uuid/docs/rfc4122/version1.rst +192 -0
- package/vendor/ramsey/uuid/docs/rfc4122/version2.rst +273 -0
- package/vendor/ramsey/uuid/docs/rfc4122/version3.rst +68 -0
- package/vendor/ramsey/uuid/docs/rfc4122/version4.rst +39 -0
- package/vendor/ramsey/uuid/docs/rfc4122/version5.rst +108 -0
- package/vendor/ramsey/uuid/docs/rfc4122/version6.rst +213 -0
- package/vendor/ramsey/uuid/docs/rfc4122/version7.rst +173 -0
- package/vendor/ramsey/uuid/docs/rfc4122/version8.rst +51 -0
- package/vendor/ramsey/uuid/docs/rfc4122.rst +67 -0
- package/vendor/ramsey/uuid/docs/testing.rst +199 -0
- package/vendor/ramsey/uuid/docs/tidelift.rst +74 -0
- package/vendor/ramsey/uuid/docs/upgrading/2-to-3.rst +31 -0
- package/vendor/ramsey/uuid/docs/upgrading/3-to-4.rst +512 -0
- package/vendor/ramsey/uuid/docs/upgrading.rst +11 -0
- package/vendor/ramsey/uuid/phpbench.json +10 -0
- package/vendor/ramsey/uuid/phpcs.xml.dist +476 -0
- package/vendor/ramsey/uuid/phpstan-tests.neon +32 -0
- package/vendor/ramsey/uuid/phpstan.neon.dist +25 -0
- package/vendor/ramsey/uuid/phpunit.xml.dist +26 -0
- package/vendor/ramsey/uuid/psalm-baseline.xml +133 -0
- package/vendor/ramsey/uuid/psalm.xml +25 -0
- package/vendor/ramsey/uuid/resources/vagrant/README.md +10 -0
- package/vendor/ramsey/uuid/resources/vagrant/freebsd/README.md +15 -0
- package/vendor/ramsey/uuid/resources/vagrant/freebsd/Vagrantfile +35 -0
- package/vendor/ramsey/uuid/resources/vagrant/linux/README.md +15 -0
- package/vendor/ramsey/uuid/resources/vagrant/linux/Vagrantfile +27 -0
- package/vendor/ramsey/uuid/resources/vagrant/windows/README.md +16 -0
- package/vendor/ramsey/uuid/resources/vagrant/windows/Vagrantfile +22 -0
- package/vendor/ramsey/uuid/src/BinaryUtils.php +106 -0
- package/vendor/ramsey/uuid/src/Builder/FallbackBuilder.php +68 -0
- package/vendor/ramsey/uuid/src/Builder/UuidBuilderInterface.php +39 -0
- package/vendor/ramsey/uuid/src/Codec/CodecInterface.php +67 -0
- package/vendor/ramsey/uuid/src/Codec/GuidStringCodec.php +82 -0
- package/vendor/ramsey/uuid/src/Codec/OrderedTimeCodec.php +114 -0
- package/vendor/ramsey/uuid/src/Codec/StringCodec.php +128 -0
- package/vendor/ramsey/uuid/src/Codec/TimestampFirstCombCodec.php +105 -0
- package/vendor/ramsey/uuid/src/Codec/TimestampLastCombCodec.php +51 -0
- package/vendor/ramsey/uuid/src/Converter/Number/GenericNumberConverter.php +48 -0
- package/vendor/ramsey/uuid/src/Converter/NumberConverterInterface.php +53 -0
- package/vendor/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php +118 -0
- package/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php +163 -0
- package/vendor/ramsey/uuid/src/Converter/Time/UnixTimeConverter.php +90 -0
- package/vendor/ramsey/uuid/src/Converter/TimeConverterInterface.php +58 -0
- package/vendor/ramsey/uuid/src/Exception/BuilderNotFoundException.php +24 -0
- package/vendor/ramsey/uuid/src/Exception/DateTimeException.php +24 -0
- package/vendor/ramsey/uuid/src/Exception/DceSecurityException.php +25 -0
- package/vendor/ramsey/uuid/src/Exception/InvalidArgumentException.php +24 -0
- package/vendor/ramsey/uuid/src/Exception/InvalidBytesException.php +24 -0
- package/vendor/ramsey/uuid/src/Exception/InvalidUuidStringException.php +25 -0
- package/vendor/ramsey/uuid/src/Exception/NameException.php +25 -0
- package/vendor/ramsey/uuid/src/Exception/NodeException.php +24 -0
- package/vendor/ramsey/uuid/src/Exception/RandomSourceException.php +27 -0
- package/vendor/ramsey/uuid/src/Exception/TimeSourceException.php +24 -0
- package/vendor/ramsey/uuid/src/Exception/UnableToBuildUuidException.php +24 -0
- package/vendor/ramsey/uuid/src/Exception/UnsupportedOperationException.php +24 -0
- package/vendor/ramsey/uuid/src/Exception/UuidExceptionInterface.php +21 -0
- package/vendor/ramsey/uuid/src/FeatureSet.php +395 -0
- package/vendor/ramsey/uuid/src/Fields/FieldsInterface.php +42 -0
- package/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php +70 -0
- package/vendor/ramsey/uuid/src/Generator/CombGenerator.php +124 -0
- package/vendor/ramsey/uuid/src/Generator/DceSecurityGenerator.php +139 -0
- package/vendor/ramsey/uuid/src/Generator/DceSecurityGeneratorInterface.php +53 -0
- package/vendor/ramsey/uuid/src/Generator/DefaultNameGenerator.php +51 -0
- package/vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php +131 -0
- package/vendor/ramsey/uuid/src/Generator/NameGeneratorFactory.php +30 -0
- package/vendor/ramsey/uuid/src/Generator/NameGeneratorInterface.php +38 -0
- package/vendor/ramsey/uuid/src/Generator/PeclUuidNameGenerator.php +52 -0
- package/vendor/ramsey/uuid/src/Generator/PeclUuidRandomGenerator.php +37 -0
- package/vendor/ramsey/uuid/src/Generator/PeclUuidTimeGenerator.php +39 -0
- package/vendor/ramsey/uuid/src/Generator/RandomBytesGenerator.php +45 -0
- package/vendor/ramsey/uuid/src/Generator/RandomGeneratorFactory.php +30 -0
- package/vendor/ramsey/uuid/src/Generator/RandomGeneratorInterface.php +31 -0
- package/vendor/ramsey/uuid/src/Generator/TimeGeneratorFactory.php +45 -0
- package/vendor/ramsey/uuid/src/Generator/TimeGeneratorInterface.php +38 -0
- package/vendor/ramsey/uuid/src/Generator/UnixTimeGenerator.php +170 -0
- package/vendor/ramsey/uuid/src/Guid/Fields.php +208 -0
- package/vendor/ramsey/uuid/src/Guid/Guid.php +61 -0
- package/vendor/ramsey/uuid/src/Guid/GuidBuilder.php +79 -0
- package/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php +226 -0
- package/vendor/ramsey/uuid/src/Math/BrickMathCalculator.php +145 -0
- package/vendor/ramsey/uuid/src/Math/CalculatorInterface.php +106 -0
- package/vendor/ramsey/uuid/src/Math/RoundingMode.php +146 -0
- package/vendor/ramsey/uuid/src/Nonstandard/Fields.php +154 -0
- package/vendor/ramsey/uuid/src/Nonstandard/Uuid.php +37 -0
- package/vendor/ramsey/uuid/src/Nonstandard/UuidBuilder.php +78 -0
- package/vendor/ramsey/uuid/src/Nonstandard/UuidV6.php +113 -0
- package/vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php +236 -0
- package/vendor/ramsey/uuid/src/Provider/DceSecurityProviderInterface.php +41 -0
- package/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php +54 -0
- package/vendor/ramsey/uuid/src/Provider/Node/RandomNodeProvider.php +69 -0
- package/vendor/ramsey/uuid/src/Provider/Node/StaticNodeProvider.php +74 -0
- package/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php +190 -0
- package/vendor/ramsey/uuid/src/Provider/NodeProviderInterface.php +30 -0
- package/vendor/ramsey/uuid/src/Provider/Time/FixedTimeProvider.php +57 -0
- package/vendor/ramsey/uuid/src/Provider/Time/SystemTimeProvider.php +33 -0
- package/vendor/ramsey/uuid/src/Provider/TimeProviderInterface.php +28 -0
- package/vendor/ramsey/uuid/src/Rfc4122/Fields.php +214 -0
- package/vendor/ramsey/uuid/src/Rfc4122/FieldsInterface.php +129 -0
- package/vendor/ramsey/uuid/src/Rfc4122/MaxTrait.php +41 -0
- package/vendor/ramsey/uuid/src/Rfc4122/MaxUuid.php +27 -0
- package/vendor/ramsey/uuid/src/Rfc4122/NilTrait.php +41 -0
- package/vendor/ramsey/uuid/src/Rfc4122/NilUuid.php +27 -0
- package/vendor/ramsey/uuid/src/Rfc4122/TimeTrait.php +55 -0
- package/vendor/ramsey/uuid/src/Rfc4122/UuidBuilder.php +116 -0
- package/vendor/ramsey/uuid/src/Rfc4122/UuidInterface.php +30 -0
- package/vendor/ramsey/uuid/src/Rfc4122/UuidV1.php +61 -0
- package/vendor/ramsey/uuid/src/Rfc4122/UuidV2.php +119 -0
- package/vendor/ramsey/uuid/src/Rfc4122/UuidV3.php +58 -0
- package/vendor/ramsey/uuid/src/Rfc4122/UuidV4.php +58 -0
- package/vendor/ramsey/uuid/src/Rfc4122/UuidV5.php +58 -0
- package/vendor/ramsey/uuid/src/Rfc4122/UuidV6.php +30 -0
- package/vendor/ramsey/uuid/src/Rfc4122/UuidV7.php +63 -0
- package/vendor/ramsey/uuid/src/Rfc4122/UuidV8.php +65 -0
- package/vendor/ramsey/uuid/src/Rfc4122/Validator.php +45 -0
- package/vendor/ramsey/uuid/src/Rfc4122/VariantTrait.php +87 -0
- package/vendor/ramsey/uuid/src/Rfc4122/Version.php +139 -0
- package/vendor/ramsey/uuid/src/Rfc4122/VersionTrait.php +57 -0
- package/vendor/ramsey/uuid/src/TimeBasedUuidFactoryInterface.php +48 -0
- package/vendor/ramsey/uuid/src/TimeBasedUuidInterface.php +30 -0
- package/vendor/ramsey/uuid/src/Type/Decimal.php +135 -0
- package/vendor/ramsey/uuid/src/Type/Hexadecimal.php +109 -0
- package/vendor/ramsey/uuid/src/Type/Integer.php +145 -0
- package/vendor/ramsey/uuid/src/Type/NumberInterface.php +28 -0
- package/vendor/ramsey/uuid/src/Type/Time.php +108 -0
- package/vendor/ramsey/uuid/src/Type/TypeInterface.php +45 -0
- package/vendor/ramsey/uuid/src/Uuid.php +645 -0
- package/vendor/ramsey/uuid/src/UuidFactory.php +503 -0
- package/vendor/ramsey/uuid/src/UuidFactoryInterface.php +184 -0
- package/vendor/ramsey/uuid/src/UuidInterface.php +114 -0
- package/vendor/ramsey/uuid/src/Validator/GenericValidator.php +45 -0
- package/vendor/ramsey/uuid/src/Validator/ValidatorInterface.php +39 -0
- package/vendor/ramsey/uuid/src/Variant.php +60 -0
- package/vendor/ramsey/uuid/src/functions.php +160 -0
- package/vendor/ramsey/uuid/tests/BinaryUtilsTest.php +381 -0
- package/vendor/ramsey/uuid/tests/Builder/FallbackBuilderTest.php +198 -0
- package/vendor/ramsey/uuid/tests/Codec/GuidStringCodecTest.php +118 -0
- package/vendor/ramsey/uuid/tests/Codec/OrderedTimeCodecTest.php +258 -0
- package/vendor/ramsey/uuid/tests/Codec/StringCodecTest.php +149 -0
- package/vendor/ramsey/uuid/tests/Converter/Number/GenericNumberConverterTest.php +28 -0
- package/vendor/ramsey/uuid/tests/Converter/Time/GenericTimeConverterTest.php +147 -0
- package/vendor/ramsey/uuid/tests/Converter/Time/PhpTimeConverterTest.php +199 -0
- package/vendor/ramsey/uuid/tests/Converter/Time/UnixTimeConverterTest.php +202 -0
- package/vendor/ramsey/uuid/tests/Encoder/TimestampFirstCombCodecTest.php +105 -0
- package/vendor/ramsey/uuid/tests/Encoder/TimestampLastCombCodecTest.php +106 -0
- package/vendor/ramsey/uuid/tests/ExpectedBehaviorTest.php +573 -0
- package/vendor/ramsey/uuid/tests/FeatureSetTest.php +88 -0
- package/vendor/ramsey/uuid/tests/FunctionsTest.php +151 -0
- package/vendor/ramsey/uuid/tests/Generator/CombGeneratorTest.php +134 -0
- package/vendor/ramsey/uuid/tests/Generator/DceSecurityGeneratorTest.php +282 -0
- package/vendor/ramsey/uuid/tests/Generator/DefaultNameGeneratorTest.php +83 -0
- package/vendor/ramsey/uuid/tests/Generator/DefaultTimeGeneratorTest.php +202 -0
- package/vendor/ramsey/uuid/tests/Generator/NameGeneratorFactoryTest.php +19 -0
- package/vendor/ramsey/uuid/tests/Generator/PeclUuidNameGeneratorTest.php +107 -0
- package/vendor/ramsey/uuid/tests/Generator/PeclUuidRandomGeneratorTest.php +30 -0
- package/vendor/ramsey/uuid/tests/Generator/PeclUuidTimeGeneratorTest.php +30 -0
- package/vendor/ramsey/uuid/tests/Generator/RandomBytesGeneratorTest.php +70 -0
- package/vendor/ramsey/uuid/tests/Generator/RandomGeneratorFactoryTest.php +19 -0
- package/vendor/ramsey/uuid/tests/Generator/TimeGeneratorFactoryTest.php +33 -0
- package/vendor/ramsey/uuid/tests/Generator/UnixTimeGeneratorTest.php +204 -0
- package/vendor/ramsey/uuid/tests/Guid/FieldsTest.php +235 -0
- package/vendor/ramsey/uuid/tests/Guid/GuidBuilderTest.php +33 -0
- package/vendor/ramsey/uuid/tests/Math/BrickMathCalculatorTest.php +116 -0
- package/vendor/ramsey/uuid/tests/Nonstandard/FieldsTest.php +84 -0
- package/vendor/ramsey/uuid/tests/Nonstandard/UuidBuilderTest.php +33 -0
- package/vendor/ramsey/uuid/tests/Nonstandard/UuidV6Test.php +192 -0
- package/vendor/ramsey/uuid/tests/Provider/Dce/SystemDceSecurityProviderTest.php +505 -0
- package/vendor/ramsey/uuid/tests/Provider/Node/FallbackNodeProviderTest.php +87 -0
- package/vendor/ramsey/uuid/tests/Provider/Node/RandomNodeProviderTest.php +124 -0
- package/vendor/ramsey/uuid/tests/Provider/Node/StaticNodeProviderTest.php +58 -0
- package/vendor/ramsey/uuid/tests/Provider/Node/SystemNodeProviderTest.php +950 -0
- package/vendor/ramsey/uuid/tests/Provider/Time/FixedTimeProviderTest.php +41 -0
- package/vendor/ramsey/uuid/tests/Provider/Time/SystemTimeProviderTest.php +20 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/FieldsTest.php +260 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/UuidBuilderTest.php +145 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/UuidV1Test.php +123 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/UuidV2Test.php +214 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/UuidV3Test.php +56 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/UuidV4Test.php +56 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/UuidV5Test.php +56 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/UuidV6Test.php +221 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/UuidV7Test.php +131 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/UuidV8Test.php +56 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/ValidatorTest.php +122 -0
- package/vendor/ramsey/uuid/tests/Rfc4122/VariantTraitTest.php +109 -0
- package/vendor/ramsey/uuid/tests/TestCase.php +29 -0
- package/vendor/ramsey/uuid/tests/Type/DecimalTest.php +305 -0
- package/vendor/ramsey/uuid/tests/Type/HexadecimalTest.php +112 -0
- package/vendor/ramsey/uuid/tests/Type/IntegerTest.php +235 -0
- package/vendor/ramsey/uuid/tests/Type/TimeTest.php +120 -0
- package/vendor/ramsey/uuid/tests/UuidFactoryTest.php +233 -0
- package/vendor/ramsey/uuid/tests/UuidTest.php +1910 -0
- package/vendor/ramsey/uuid/tests/Validator/GenericValidatorTest.php +98 -0
- package/vendor/ramsey/uuid/tests/benchmark/GuidConversionBench.php +43 -0
- package/vendor/ramsey/uuid/tests/benchmark/NonLazyUuidConversionBench.php +39 -0
- package/vendor/ramsey/uuid/tests/benchmark/UuidFieldExtractionBench.php +86 -0
- package/vendor/ramsey/uuid/tests/benchmark/UuidGenerationBench.php +113 -0
- package/vendor/ramsey/uuid/tests/benchmark/UuidSerializationBench.php +206 -0
- package/vendor/ramsey/uuid/tests/benchmark/UuidStringConversionBench.php +257 -0
- package/vendor/ramsey/uuid/tests/bootstrap.php +12 -0
- package/vendor/ramsey/uuid/tests/static-analysis/UuidIsImmutable.php +96 -0
- package/vendor/ramsey/uuid/tests/static-analysis/UuidIsNeverEmpty.php +36 -0
- package/vendor/ramsey/uuid/tests/static-analysis/ValidUuidIsNonEmpty.php +44 -0
- package/vendor/ramsey/uuid/tests/static-analysis/stubs.php +33 -0
- package/vendor/symfony/polyfill-ctype/Ctype.php +232 -0
- package/vendor/symfony/polyfill-ctype/LICENSE +19 -0
- package/vendor/symfony/polyfill-ctype/README.md +12 -0
- package/vendor/symfony/polyfill-ctype/bootstrap.php +50 -0
- package/vendor/symfony/polyfill-ctype/bootstrap80.php +46 -0
- package/vendor/symfony/polyfill-ctype/composer.json +41 -0
- package/vendor/symfony/polyfill-mbstring/LICENSE +19 -0
- package/vendor/symfony/polyfill-mbstring/Mbstring.php +947 -0
- package/vendor/symfony/polyfill-mbstring/README.md +13 -0
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +119 -0
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +1397 -0
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +5 -0
- package/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +1489 -0
- package/vendor/symfony/polyfill-mbstring/bootstrap.php +151 -0
- package/vendor/symfony/polyfill-mbstring/bootstrap80.php +147 -0
- package/vendor/symfony/polyfill-mbstring/composer.json +41 -0
- package/vendor/symfony/polyfill-php80/LICENSE +19 -0
- package/vendor/symfony/polyfill-php80/Php80.php +115 -0
- package/vendor/symfony/polyfill-php80/PhpToken.php +103 -0
- package/vendor/symfony/polyfill-php80/README.md +25 -0
- package/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +31 -0
- package/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php +16 -0
- package/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +20 -0
- package/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +16 -0
- package/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +16 -0
- package/vendor/symfony/polyfill-php80/bootstrap.php +42 -0
- package/vendor/symfony/polyfill-php80/composer.json +40 -0
- package/vendor/vlucas/phpdotenv/.editorconfig +15 -0
- package/vendor/vlucas/phpdotenv/.gitattributes +17 -0
- package/vendor/vlucas/phpdotenv/.github/CODE_OF_CONDUCT.md +132 -0
- package/vendor/vlucas/phpdotenv/.github/CONTRIBUTING.md +30 -0
- package/vendor/vlucas/phpdotenv/.github/FUNDING.yml +2 -0
- package/vendor/vlucas/phpdotenv/.github/SECURITY.md +14 -0
- package/vendor/vlucas/phpdotenv/.github/workflows/static.yml +74 -0
- package/vendor/vlucas/phpdotenv/.github/workflows/tests.yml +70 -0
- package/vendor/vlucas/phpdotenv/LICENSE +30 -0
- package/vendor/vlucas/phpdotenv/Makefile +26 -0
- package/vendor/vlucas/phpdotenv/README.md +363 -0
- package/vendor/vlucas/phpdotenv/UPGRADING.md +196 -0
- package/vendor/vlucas/phpdotenv/composer.json +60 -0
- package/vendor/vlucas/phpdotenv/phpstan-baseline.neon +21 -0
- package/vendor/vlucas/phpdotenv/phpstan.neon.dist +7 -0
- package/vendor/vlucas/phpdotenv/phpunit.xml.dist +13 -0
- package/vendor/vlucas/phpdotenv/psalm-baseline.xml +28 -0
- package/vendor/vlucas/phpdotenv/psalm.xml +13 -0
- package/vendor/vlucas/phpdotenv/src/Dotenv.php +267 -0
- package/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php +12 -0
- package/vendor/vlucas/phpdotenv/src/Exception/InvalidEncodingException.php +12 -0
- package/vendor/vlucas/phpdotenv/src/Exception/InvalidFileException.php +12 -0
- package/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php +12 -0
- package/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php +12 -0
- package/vendor/vlucas/phpdotenv/src/Loader/Loader.php +47 -0
- package/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php +20 -0
- package/vendor/vlucas/phpdotenv/src/Loader/Resolver.php +65 -0
- package/vendor/vlucas/phpdotenv/src/Parser/Entry.php +59 -0
- package/vendor/vlucas/phpdotenv/src/Parser/EntryParser.php +300 -0
- package/vendor/vlucas/phpdotenv/src/Parser/Lexer.php +58 -0
- package/vendor/vlucas/phpdotenv/src/Parser/Lines.php +127 -0
- package/vendor/vlucas/phpdotenv/src/Parser/Parser.php +53 -0
- package/vendor/vlucas/phpdotenv/src/Parser/ParserInterface.php +19 -0
- package/vendor/vlucas/phpdotenv/src/Parser/Value.php +88 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php +15 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php +89 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php +80 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php +89 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php +85 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.php +110 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php +48 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php +64 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php +91 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php +17 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php +104 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php +89 -0
- package/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php +27 -0
- package/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php +107 -0
- package/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php +272 -0
- package/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php +51 -0
- package/vendor/vlucas/phpdotenv/src/Store/File/Paths.php +44 -0
- package/vendor/vlucas/phpdotenv/src/Store/File/Reader.php +81 -0
- package/vendor/vlucas/phpdotenv/src/Store/FileStore.php +72 -0
- package/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php +141 -0
- package/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php +17 -0
- package/vendor/vlucas/phpdotenv/src/Store/StringStore.php +37 -0
- package/vendor/vlucas/phpdotenv/src/Util/Regex.php +112 -0
- package/vendor/vlucas/phpdotenv/src/Util/Str.php +98 -0
- package/vendor/vlucas/phpdotenv/src/Validator.php +209 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/DotenvTest.php +387 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/Loader/LoaderTest.php +86 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/EntryParserTest.php +234 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LexerTest.php +40 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LinesTest.php +53 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/ParserTest.php +98 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ArrayAdapterTest.php +57 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/EnvConstAdapterTest.php +75 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/PutenvAdapterTest.php +52 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ServerConstAdapterTest.php +75 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/RepositoryTest.php +305 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/Store/StoreTest.php +141 -0
- package/vendor/vlucas/phpdotenv/tests/Dotenv/ValidatorTest.php +479 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/.env +5 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/assertions.env +18 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/booleans.env +33 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/commented.env +15 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/empty.env +1 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/example.env +1 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/exported.env +7 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/immutable.env +1 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/integers.env +17 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/large.env +2 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/multibyte.env +3 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/multiline.env +14 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/multiple.env +4 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/mutable.env +1 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/nested.env +15 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/quoted.env +11 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/specialchars.env +8 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/unicodevarnames.env +2 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/utf8-with-bom-encoding.env +3 -0
- package/vendor/vlucas/phpdotenv/tests/fixtures/env/windows.env +1 -0
- package/vendor/vlucas/phpdotenv/vendor-bin/phpstan/composer.json +16 -0
- package/vendor/vlucas/phpdotenv/vendor-bin/psalm/composer.json +9 -0
|
@@ -0,0 +1,1511 @@
|
|
|
1
|
+
# ramsey/uuid Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## Unreleased
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
* Introduce `Ramsey\Uuid\TimeBasedUuidInterface` to represent any UUID based on
|
|
13
|
+
a date/time value.
|
|
14
|
+
* Introduce `Ramsey\Uuid\TimeBasedUuidFactoryInterface` to represent any factory
|
|
15
|
+
for creating UUIDs based on a date/time value.
|
|
16
|
+
* Introduce `Ramsey\Uuid\Variant` enum to represent the variant field.
|
|
17
|
+
* Introduce `Ramsey\Uuid\Rfc4122\Version` enum to represent the version field.
|
|
18
|
+
* Add new static method `Ramsey\Uuid\BinaryUtils::applyVersionAndVariant()`.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
* Remove the following deprecated classes and interfaces:
|
|
23
|
+
* `Ramsey\Uuid\Builder\BuilderCollection`
|
|
24
|
+
* `Ramsey\Uuid\Builder\DefaultUuidBuilder`
|
|
25
|
+
* `Ramsey\Uuid\Builder\DegradedUuidBuilder`
|
|
26
|
+
* `Ramsey\Uuid\Converter\Number\BigNumberConverter`
|
|
27
|
+
* `Ramsey\Uuid\Converter\Number\DegradedNumberConverter`
|
|
28
|
+
* `Ramsey\Uuid\Converter\Time\BigNumberTimeConverter`
|
|
29
|
+
* `Ramsey\Uuid\Converter\Time\DegradedTimeConverter`
|
|
30
|
+
* `Ramsey\Uuid\DegradedUuid`
|
|
31
|
+
* `Ramsey\Uuid\DeprecatedUuidFactoryInterface`
|
|
32
|
+
* `Ramsey\Uuid\Generator\RandomLibAdapter`
|
|
33
|
+
* `Ramsey\Uuid\Provider\Node\NodeProviderCollection`
|
|
34
|
+
* Remove the following deprecated methods from Uuid classes:
|
|
35
|
+
* `getClockSeqHiAndReserved()`
|
|
36
|
+
* `getClockSeqHiAndReservedHex()`
|
|
37
|
+
* `getClockSeqLow()`
|
|
38
|
+
* `getClockSeqLowHex()`
|
|
39
|
+
* `getClockSequence()`
|
|
40
|
+
* `getClockSequenceHex()`
|
|
41
|
+
* `getDateTime()`
|
|
42
|
+
* `getFieldsHex()`
|
|
43
|
+
* `getLeastSignificantBits()`
|
|
44
|
+
* `getLeastSignificantBitsHex()`
|
|
45
|
+
* `getMostSignificantBits()`
|
|
46
|
+
* `getMostSignificantBitsHex()`
|
|
47
|
+
* `getNode()`
|
|
48
|
+
* `getNodeHex()`
|
|
49
|
+
* `getNumberConverter()`
|
|
50
|
+
* `getTimeHiAndVersion()`
|
|
51
|
+
* `getTimeHiAndVersionHex()`
|
|
52
|
+
* `getTimeLow()`
|
|
53
|
+
* `getTimeLowHex()`
|
|
54
|
+
* `getTimeMid()`
|
|
55
|
+
* `getTimeMidHex()`
|
|
56
|
+
* `getTimestamp()`
|
|
57
|
+
* `getTimestampHex()`
|
|
58
|
+
* `getVariant()`
|
|
59
|
+
* `getVersion()`
|
|
60
|
+
* Remove the following deprecated constants:
|
|
61
|
+
* `Ramsey\Uuid\Uuid::RESERVED_NCS` (replaced with `Ramsey\Uuid\Variant::ReservedNcs` enum)
|
|
62
|
+
* `Ramsey\Uuid\Uuid::RFC_4122` (replaced with `Ramsey\Uuid\Variant::Rfc4122` enum)
|
|
63
|
+
* `Ramsey\Uuid\Uuid::RESERVED_MICROSOFT` (replaced with `Ramsey\Uuid\Variant::ReservedMicrosoft` enum)
|
|
64
|
+
* `Ramsey\Uuid\Uuid::RESERVED_FUTURE` (replaced with `Ramsey\Uuid\Variant::ReservedFuture` enum)
|
|
65
|
+
* `Ramsey\Uuid\Uuid::UUID_TYPE_TIME` (replaced with `Ramsey\Uuid\Rfc4122\Version::Time` enum)
|
|
66
|
+
* `Ramsey\Uuid\Uuid::UUID_TYPE_DCE_SECURITY` (replaced with `Ramsey\Uuid\Rfc4122\Version::DceSecurity` enum)
|
|
67
|
+
* `Ramsey\Uuid\Uuid::UUID_TYPE_HASH_MD5` (replaced with `Ramsey\Uuid\Rfc4122\Version::HashMd5` enum)
|
|
68
|
+
* `Ramsey\Uuid\Uuid::UUID_TYPE_RANDOM` (replaced with `Ramsey\Uuid\Rfc4122\Version::Random` enum)
|
|
69
|
+
* `Ramsey\Uuid\Uuid::UUID_TYPE_HASH_SHA1` (replaced with `Ramsey\Uuid\Rfc4122\Version::HashSha1` enum)
|
|
70
|
+
* `Ramsey\Uuid\Uuid::UUID_TYPE_PEABODY` (replaced with `Ramsey\Uuid\Rfc4122\Version::ReorderedTime` enum)
|
|
71
|
+
* `Ramsey\Uuid\Uuid::VALID_PATTERN`
|
|
72
|
+
* Remove dependency on ramsey/collection package.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## 4.7.4 - 2023-04-15
|
|
76
|
+
|
|
77
|
+
### Fixed
|
|
78
|
+
|
|
79
|
+
* Allow brick/math version `^0.11`.
|
|
80
|
+
* Add explicit `Stringable` interface to `UuidInterface`.
|
|
81
|
+
* Fix namespace conflict reported in [#490](https://github.com/ramsey/uuid/issues/490).
|
|
82
|
+
* Fix unserialize error with `OrderedTimeCodec` reported in
|
|
83
|
+
[#494](https://github.com/ramsey/uuid/issues/494).
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## 4.7.3 - 2023-01-12
|
|
87
|
+
|
|
88
|
+
### Fixed
|
|
89
|
+
|
|
90
|
+
* The original 4.7.2 tag accidentally pointed to a commit in the 5.x branch. I
|
|
91
|
+
have replaced the 4.7.2 tag with a new tag that points to the correct commit,
|
|
92
|
+
but I am creating this tag to help notify users and automated processes who
|
|
93
|
+
might have already updated to the bad 4.7.2 tag.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## 4.7.2 - 2023-01-12
|
|
97
|
+
|
|
98
|
+
### Fixed
|
|
99
|
+
|
|
100
|
+
* Amend Psalm assertion syntax on `Uuid::isValid()` to prevent incorrect type
|
|
101
|
+
inference ([#486](https://github.com/ramsey/uuid/pull/486)).
|
|
102
|
+
* Re-tagged with the correct commit hash, since the first tag was pointing to
|
|
103
|
+
a commit in the 5.x branch.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## 4.7.1 - 2022-12-31
|
|
107
|
+
|
|
108
|
+
### Fixed
|
|
109
|
+
|
|
110
|
+
* Allow the use of ramsey/collection ^2.0 with ramsey/uuid.
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## 4.7.0 - 2022-12-19
|
|
114
|
+
|
|
115
|
+
### Added
|
|
116
|
+
|
|
117
|
+
* Add `Uuid::fromHexadecimal()` and `UuidFactory::fromHexadecimal()`. These
|
|
118
|
+
methods are not required by the interfaces.
|
|
119
|
+
|
|
120
|
+
### Fixed
|
|
121
|
+
|
|
122
|
+
* Ignore MAC addresses consisting of all zeroes (i.e., `00:00:00:00:00:00`).
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
## 4.6.0 - 2022-11-05
|
|
126
|
+
|
|
127
|
+
### Added
|
|
128
|
+
|
|
129
|
+
* Add support for version 8, Unix Epoch time UUIDs, as defined in
|
|
130
|
+
[draft-ietf-uuidrev-rfc4122bis-00, section 5.8][version8]. While still an
|
|
131
|
+
Internet-Draft, version 8 is stable and unlikely to change in any way that
|
|
132
|
+
breaks compatibility.
|
|
133
|
+
* Use `Ramsey\Uuid\Uuid::uuid8()` to generate version 8 UUIDs.
|
|
134
|
+
* Version 8 UUIDs are of type `Ramsey\Uuid\Rfc4122\UuidV8`.
|
|
135
|
+
* The constant `Ramsey\Uuid\Uuid::UUID_TYPE_CUSTOM` exists for version 8 UUIDs.
|
|
136
|
+
|
|
137
|
+
### Fixed
|
|
138
|
+
|
|
139
|
+
* Ensure monotonicity of version 7 UUIDs.
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
## 4.5.1 - 2022-09-16
|
|
143
|
+
|
|
144
|
+
### Fixed
|
|
145
|
+
|
|
146
|
+
* Update RFC 4122 validator to recognize version 6 and 7 UUIDs.
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
## 4.5.0 - 2022-09-15
|
|
150
|
+
|
|
151
|
+
### Added
|
|
152
|
+
|
|
153
|
+
* Promote version 6, reordered time UUIDs from the `Nonstandard` namespace to
|
|
154
|
+
the `Rfc4122` namespace. Version 6 UUIDs are defined in
|
|
155
|
+
[draft-ietf-uuidrev-rfc4122bis-00, section 5.6][version6]. While still an
|
|
156
|
+
Internet-Draft version 6 is stable and unlikely to change in any way that
|
|
157
|
+
breaks compatibility.
|
|
158
|
+
* Add support for version 7, Unix Epoch time UUIDs, as defined in
|
|
159
|
+
[draft-ietf-uuidrev-rfc4122bis-00, section 5.7][version7]. While still an
|
|
160
|
+
Internet-Draft, version 7 is stable and unlikely to change in any way that
|
|
161
|
+
breaks compatibility.
|
|
162
|
+
* Use `Ramsey\Uuid\Uuid::uuid7()` to generate version 7 UUIDs.
|
|
163
|
+
* Version 7 UUIDs are of type `Ramsey\Uuid\Rfc4122\UuidV7`.
|
|
164
|
+
* The constant `Ramsey\Uuid\Uuid::UUID_TYPE_UNIX_TIME` exists for version
|
|
165
|
+
7 UUIDs.
|
|
166
|
+
* Add `Ramsey\Uuid\Converter\Time\UnixTimeConverter` and
|
|
167
|
+
`Ramsey\Uuid\Generator\UnixTimeGenerator` to support version 7 UUID generation.
|
|
168
|
+
* Add support for [max UUIDs][] through `Ramsey\Uuid\Uuid::MAX` and
|
|
169
|
+
`Ramsey\Uuid\Rfc4122\MaxUuid`.
|
|
170
|
+
|
|
171
|
+
### Changed
|
|
172
|
+
|
|
173
|
+
* The lowest version of brick/math allowed is now `^0.8.8`.
|
|
174
|
+
|
|
175
|
+
### Deprecated
|
|
176
|
+
|
|
177
|
+
The following will be removed in ramsey/uuid 5.0.0:
|
|
178
|
+
|
|
179
|
+
* `Ramsey\Uuid\Nonstandard\UuidV6` is deprecated in favor of
|
|
180
|
+
`Ramsey\Uuid\Rfc4122\UuidV6`.
|
|
181
|
+
* `Ramsey\Uuid\Uuid::UUID_TYPE_PEABODY`; use
|
|
182
|
+
`Ramsey\Uuid\Uuid::UUID_TYPE_REORDERED_TIME` instead.
|
|
183
|
+
|
|
184
|
+
### Fixed
|
|
185
|
+
|
|
186
|
+
* For `Ramsey\Uuid\Uuid::isValid()`, Psalm now asserts the UUID is a
|
|
187
|
+
non-empty-string when it is valid.
|
|
188
|
+
* Nil UUIDs are properly treated as RFC 4122 variants, and `getVariant()` now
|
|
189
|
+
returns a `2` when called on a nil UUID.
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
## 4.4.0 - 2022-08-05
|
|
193
|
+
|
|
194
|
+
### Changed
|
|
195
|
+
|
|
196
|
+
* Allow brick/math 0.10.
|
|
197
|
+
* Remove dev dependency to moontoast/math.
|
|
198
|
+
* Un-deprecate `UuidInterface::getUrn()`.
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
## 4.3.1 - 2022-03-27
|
|
202
|
+
|
|
203
|
+
### Deprecated
|
|
204
|
+
|
|
205
|
+
The following will be removed in ramsey/uuid 5.0.0:
|
|
206
|
+
|
|
207
|
+
* `Ramsey\Uuid\Generator\RandomLibAdapter`
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
## 4.3.0 - 2022-03-26
|
|
211
|
+
|
|
212
|
+
### Changed
|
|
213
|
+
|
|
214
|
+
* Remove support for PHP 7.2, 7.3, and 7.4. This is not a BC break, since
|
|
215
|
+
Composer will do the right thing for your environment and select a compatible
|
|
216
|
+
version of this library.
|
|
217
|
+
* Require `ext-ctype` extension. For applications that run in environments where
|
|
218
|
+
the `ext-ctype` is not present, please require a polyfill, such as
|
|
219
|
+
[symfony/polyfill-ctype](https://packagist.org/packages/symfony/polyfill-ctype).
|
|
220
|
+
* Use `iterable<UuidBuilderInterface>` instead of `BuilderCollection` types.
|
|
221
|
+
* Use `iterable<NodeProviderInterface>` instead of `NodeProviderCollection` types.
|
|
222
|
+
|
|
223
|
+
### Deprecated
|
|
224
|
+
|
|
225
|
+
The following will be removed in ramsey/uuid 5.0.0:
|
|
226
|
+
|
|
227
|
+
* `Ramsey\Uuid\Builder\BuilderCollection`
|
|
228
|
+
* `Ramsey\Uuid\Provider\Node\NodeProviderCollection`
|
|
229
|
+
* Dependency on ramsey/collection
|
|
230
|
+
|
|
231
|
+
### Fixed
|
|
232
|
+
|
|
233
|
+
* Support valid UUIDs in uppercase in `LazyUuidFromString`.
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
## 4.2.3 - 2021-09-25
|
|
237
|
+
|
|
238
|
+
### Fixed
|
|
239
|
+
|
|
240
|
+
* Switch back to `^8.0` in the PHP version requirement.
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
## 4.2.2 - 2021-09-24
|
|
244
|
+
|
|
245
|
+
### Fixed
|
|
246
|
+
|
|
247
|
+
* Indicate support for PHP 8.1, using `~8.1.0` to prevent installations on 8.2
|
|
248
|
+
until the library is ready.
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
## 4.2.1 - 2021-08-10
|
|
252
|
+
|
|
253
|
+
### Fixed
|
|
254
|
+
|
|
255
|
+
* Fix *soft* BC break with `Uuid::fromString()` signature. The change from
|
|
256
|
+
`string` to `non-empty-string` on the parameter annotation introduced a
|
|
257
|
+
BC break for those using static analysis tools. This release reverts this
|
|
258
|
+
change and provides an assertion to guard against empty strings.
|
|
259
|
+
See [ramsey/uuid#383](https://github.com/ramsey/uuid/pull/383).
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
## 4.2.0 - 2021-08-06
|
|
263
|
+
|
|
264
|
+
### Added
|
|
265
|
+
|
|
266
|
+
* Add `Ramsey\Uuid\Exception\UuidExceptionInterface` for all ramsey/uuid
|
|
267
|
+
exceptions to implement. See [ramsey/uuid#340](https://github.com/ramsey/uuid/pull/340).
|
|
268
|
+
|
|
269
|
+
### Fixed
|
|
270
|
+
|
|
271
|
+
* Fix serialization of UUIDs.
|
|
272
|
+
See [ramsey/uuid#361](https://github.com/ramsey/uuid/pull/361).
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
## 4.1.3 - 2021-09-25
|
|
276
|
+
|
|
277
|
+
### Fixed
|
|
278
|
+
|
|
279
|
+
* Switch back to `^8.0` in the PHP version requirement.
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
## 4.1.2 - 2021-09-24
|
|
283
|
+
|
|
284
|
+
### Fixed
|
|
285
|
+
|
|
286
|
+
* Lock 4.1.x to `~8.0.0` to indicate it does not support PHP 8.1.
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
## 4.1.1 - 2020-08-18
|
|
290
|
+
|
|
291
|
+
### Fixed
|
|
292
|
+
|
|
293
|
+
* Allow use of brick/math version 0.9
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
## 4.1.0 - 2020-07-28
|
|
297
|
+
|
|
298
|
+
### Changed
|
|
299
|
+
|
|
300
|
+
* Improve performance of `Uuid::fromString()`, `Uuid::fromBytes()`,
|
|
301
|
+
`UuidInterface#toString()`, and `UuidInterface#getBytes()`. See PR
|
|
302
|
+
[#324](https://github.com/ramsey/uuid/pull/324) for more information.
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
## 4.0.3 - 2021-09-25
|
|
306
|
+
|
|
307
|
+
### Fixed
|
|
308
|
+
|
|
309
|
+
* Switch back to `^8.0` in the PHP version requirement.
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
## 4.0.2 - 2021-09-24
|
|
313
|
+
|
|
314
|
+
### Fixed
|
|
315
|
+
|
|
316
|
+
* Lock 4.0.x to `~8.0.0` to indicate it does not support PHP 8.1.
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
## 4.0.1 - 2020-03-29
|
|
320
|
+
|
|
321
|
+
### Fixed
|
|
322
|
+
|
|
323
|
+
* Fix collection deserialization errors due to upstream `allowed_classes` being
|
|
324
|
+
set to `false`. For details, see [ramsey/uuid#303](https://github.com/ramsey/uuid/issues/303)
|
|
325
|
+
and [ramsey/collection#47](https://github.com/ramsey/collection/issues/47).
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
## 4.0.0 - 2020-03-22
|
|
329
|
+
|
|
330
|
+
### Added
|
|
331
|
+
|
|
332
|
+
* Add support for version 6 UUIDs, as defined by <http://gh.peabody.io/uuidv6/>,
|
|
333
|
+
including the static method `Uuid::uuid6()`, which returns a
|
|
334
|
+
`Nonstandard\UuidV6` instance.
|
|
335
|
+
* Add ability to generate version 2 (DCE Security) UUIDs, including the static
|
|
336
|
+
method `Uuid::uuid2()`, which returns an `Rfc4122\UuidV2` instance.
|
|
337
|
+
* Add classes to represent each version of RFC 4122 UUID. When generating new
|
|
338
|
+
UUIDs or creating UUIDs from existing strings, bytes, or integers, if the UUID
|
|
339
|
+
is an RFC 4122 variant, one of these instances will be returned:
|
|
340
|
+
* `Rfc4122\UuidV1`
|
|
341
|
+
* `Rfc4122\UuidV2`
|
|
342
|
+
* `Rfc4122\UuidV3`
|
|
343
|
+
* `Rfc4122\UuidV4`
|
|
344
|
+
* `Rfc4122\UuidV5`
|
|
345
|
+
* `Rfc4122\NilUuid`
|
|
346
|
+
* Add classes to represent version 6 UUIDs, GUIDs, and nonstandard
|
|
347
|
+
(non-RFC 4122 variant) UUIDs:
|
|
348
|
+
* `Nonstandard\UuidV6`
|
|
349
|
+
* `Guid\Guid`
|
|
350
|
+
* `Nonstandard\Uuid`
|
|
351
|
+
* Add `Uuid::fromDateTime()` to create version 1 UUIDs from instances of
|
|
352
|
+
`\DateTimeInterface`.
|
|
353
|
+
* The `\DateTimeInterface` instance returned by `UuidInterface::getDateTime()`
|
|
354
|
+
(and now `Rfc4122\UuidV1::getDateTime()`) now includes microseconds, as
|
|
355
|
+
specified by the version 1 UUID.
|
|
356
|
+
* Add `Validator\ValidatorInterface` and `Validator\GenericValidator` to allow
|
|
357
|
+
flexibility in validating UUIDs/GUIDs.
|
|
358
|
+
* The default validator continues to validate UUID strings using the same
|
|
359
|
+
relaxed validation pattern found in the 3.x series of ramsey/uuid.
|
|
360
|
+
* Introduce `Rfc4122\Validator` that may be used for strict validation of
|
|
361
|
+
RFC 4122 UUID strings.
|
|
362
|
+
* Add ability to change the default validator used by `Uuid` through
|
|
363
|
+
`FeatureSet::setValidator()`.
|
|
364
|
+
* Add `getValidator()` and `setValidator()` to `UuidFactory`.
|
|
365
|
+
* Add `Provider\Node\StaticNodeProvider` to assist in setting a custom static
|
|
366
|
+
node value with the multicast bit set for version 1 UUIDs.
|
|
367
|
+
* Add the following new exceptions:
|
|
368
|
+
* `Exception\BuilderNotFoundException` -
|
|
369
|
+
Thrown to indicate that no suitable UUID builder could be found.
|
|
370
|
+
* `Exception\DateTimeException` -
|
|
371
|
+
Thrown to indicate that the PHP DateTime extension encountered an
|
|
372
|
+
exception/error.
|
|
373
|
+
* `Exception\DceSecurityException` -
|
|
374
|
+
Thrown to indicate an exception occurred while dealing with DCE Security
|
|
375
|
+
(version 2) UUIDs.
|
|
376
|
+
* `Exception\InvalidArgumentException` -
|
|
377
|
+
Thrown to indicate that the argument received is not valid. This extends the
|
|
378
|
+
built-in PHP `\InvalidArgumentException`, so there should be no BC breaks
|
|
379
|
+
with ramsey/uuid throwing this exception, if you are catching the PHP
|
|
380
|
+
exception.
|
|
381
|
+
* `Exception\InvalidBytesException` -
|
|
382
|
+
Thrown to indicate that the bytes being operated on are invalid in some way.
|
|
383
|
+
* `Exception\NameException` -
|
|
384
|
+
Thrown to indicate that an error occurred while attempting to hash a
|
|
385
|
+
namespace and name.
|
|
386
|
+
* `Exception\NodeException` -
|
|
387
|
+
Throw to indicate that attempting to fetch or create a node ID encountered
|
|
388
|
+
an error.
|
|
389
|
+
* `Exception\RandomSourceException` -
|
|
390
|
+
Thrown to indicate that the source of random data encountered an error.
|
|
391
|
+
* `Exception\TimeSourceException` -
|
|
392
|
+
Thrown to indicate that the source of time encountered an error.
|
|
393
|
+
* `Exception\UnableToBuildUuidException` -
|
|
394
|
+
Thrown to indicate a builder is unable to build a UUID.
|
|
395
|
+
* Introduce a `Builder\FallbackBuilder`, used by `FeatureSet` to help decide
|
|
396
|
+
whether to return a `Uuid` or `Nonstandard\Uuid` when decoding a
|
|
397
|
+
UUID string or bytes.
|
|
398
|
+
* Add `Rfc4122\UuidInterface` to specifically represent RFC 4122 variant UUIDs.
|
|
399
|
+
* Add `Rfc4122\UuidBuilder` to build RFC 4122 variant UUIDs. This replaces the
|
|
400
|
+
existing `Builder\DefaultUuidBuilder`, which is now deprecated.
|
|
401
|
+
* Introduce `Math\CalculatorInterface` for representing calculators to perform
|
|
402
|
+
arithmetic operations on integers.
|
|
403
|
+
* Depend on [brick/math](https://github.com/brick/math) for the
|
|
404
|
+
`Math\BrickMathCalculator`, which is the default calculator used by this
|
|
405
|
+
library when math cannot be performed in native PHP due to integer size
|
|
406
|
+
limitations. The calculator is configurable and may be changed, if desired.
|
|
407
|
+
* Add `Converter\Number\GenericNumberConverter` and
|
|
408
|
+
`Converter\Time\GenericTimeConverter` which will use the calculator provided
|
|
409
|
+
to convert numbers and time to values for UUIDs.
|
|
410
|
+
* Introduce `Type\Hexadecimal`, `Type\Integer`, `Type\Decimal`, and `Type\Time`
|
|
411
|
+
for improved type-safety when dealing with arbitrary string values.
|
|
412
|
+
* Add a `Type\TypeInterface` that each of the ramsey/uuid types implements.
|
|
413
|
+
* Add `Fields\FieldsInterface` and `Rfc4122\FieldsInterface` to define
|
|
414
|
+
field layouts for UUID variants. The implementations `Rfc4122\Fields`,
|
|
415
|
+
`Guid\Fields`, and `Nonstandard\Fields` store the 16-byte,
|
|
416
|
+
binary string representation of the UUID internally, and these manage
|
|
417
|
+
conversion of the binary string into the hexadecimal field values.
|
|
418
|
+
* Introduce `Builder\BuilderCollection` and `Provider\Node\NodeProviderCollection`.
|
|
419
|
+
These are typed collections for providing builders and node providers to
|
|
420
|
+
`Builder\FallbackBuilder` and `Provider\Node\FallbackNodeProvider`, respectively.
|
|
421
|
+
* Add `Generator\NameGeneratorInterface` to support alternate methods of
|
|
422
|
+
generating bytes for version 3 and version 5 name-based UUID. By default,
|
|
423
|
+
ramsey/uuid uses the `Generator\DefaultNameGenerator`, which uses the standard
|
|
424
|
+
algorithm this library has used since the beginning. You may choose to use the
|
|
425
|
+
new `Generator\PeclUuidNameGenerator` to make use of the new
|
|
426
|
+
`uuid_generate_md5()` and `uuid_generate_sha1()` functions in
|
|
427
|
+
[ext-uuid version 1.1.0](https://pecl.php.net/package/uuid).
|
|
428
|
+
|
|
429
|
+
### Changed
|
|
430
|
+
|
|
431
|
+
* Set minimum required PHP version to 7.2.
|
|
432
|
+
* This library now works on 32-bit and 64-bit systems, with no degradation in
|
|
433
|
+
functionality.
|
|
434
|
+
* By default, the following static methods will now return specific instance
|
|
435
|
+
types. This should not cause any BC breaks if typehints target `UuidInterface`:
|
|
436
|
+
* `Uuid::uuid1` returns `Rfc4122\UuidV1`
|
|
437
|
+
* `Uuid::uuid3` returns `Rfc4122\UuidV3`
|
|
438
|
+
* `Uuid::uuid4` returns `Rfc4122\UuidV4`
|
|
439
|
+
* `Uuid::uuid5` returns `Rfc4122\UuidV5`
|
|
440
|
+
* Accept `Type\Hexadecimal` for the `$node` parameter for
|
|
441
|
+
`UuidFactoryInterface::uuid1()`. This is in addition to the `int|string` types
|
|
442
|
+
already accepted, so there are no BC breaks. `Type\Hexadecimal` is now the
|
|
443
|
+
recommended type to pass for `$node`.
|
|
444
|
+
* Out of the box, `Uuid::fromString()`, `Uuid::fromBytes()`, and
|
|
445
|
+
`Uuid::fromInteger()` will now return either an `Rfc4122\UuidInterface`
|
|
446
|
+
instance or an instance of `Nonstandard\Uuid`, depending on whether the input
|
|
447
|
+
contains an RFC 4122 variant UUID with a valid version identifier. Both
|
|
448
|
+
implement `UuidInterface`, so BC breaks should not occur if typehints use the
|
|
449
|
+
interface.
|
|
450
|
+
* Change `Uuid::getFields()` to return an instance of `Fields\FieldsInterface`.
|
|
451
|
+
Previously, it returned an array of integer values (on 64-bit systems only).
|
|
452
|
+
* `Uuid::getDateTime()` now returns an instance of `\DateTimeImmutable` instead
|
|
453
|
+
of `\DateTime`.
|
|
454
|
+
* Make the following changes to `UuidInterface`:
|
|
455
|
+
* `getHex()` now returns a `Type\Hexadecimal` instance.
|
|
456
|
+
* `getInteger()` now returns a `Type\Integer` instance. The `Type\Integer`
|
|
457
|
+
instance holds a string representation of a 128-bit integer. You may then
|
|
458
|
+
use a math library of your choice (bcmath, gmp, etc.) to operate on the
|
|
459
|
+
string integer.
|
|
460
|
+
* `getDateTime()` now returns `\DateTimeInterface` instead of `\DateTime`.
|
|
461
|
+
* Add `__toString()` method.
|
|
462
|
+
* Add `getFields()` method. It returns an instance of `Fields\FieldsInterface`.
|
|
463
|
+
* Add the following new methods to `UuidFactoryInterface`:
|
|
464
|
+
* `uuid2()`
|
|
465
|
+
* `uuid6()`
|
|
466
|
+
* `fromDateTime()`
|
|
467
|
+
* `fromInteger()`
|
|
468
|
+
* `getValidator()`
|
|
469
|
+
* This library no longer throws generic exceptions. However, this should not
|
|
470
|
+
result in BC breaks, since the new exceptions extend from built-in PHP
|
|
471
|
+
exceptions that this library previously threw.
|
|
472
|
+
* `Exception\UnsupportedOperationException` is now descended from
|
|
473
|
+
`\LogicException`. Previously, it descended from `\RuntimeException`.
|
|
474
|
+
* Change required constructor parameters for `Uuid`:
|
|
475
|
+
* Change the first required constructor parameter for `Uuid` from
|
|
476
|
+
`array $fields` to `Rfc4122\FieldsInterface $fields`.
|
|
477
|
+
* Add `Converter\TimeConverterInterface $timeConverter` as the fourth
|
|
478
|
+
required constructor parameter for `Uuid`.
|
|
479
|
+
* Change the second required parameter of `Builder\UuidBuilderInterface::build()`
|
|
480
|
+
from `array $fields` to `string $bytes`. Rather than accepting an array of
|
|
481
|
+
hexadecimal strings as UUID fields, the `build()` method now expects a byte
|
|
482
|
+
string.
|
|
483
|
+
* Add `Converter\TimeConverterInterface $timeConverter` as the second required
|
|
484
|
+
constructor parameter for `Rfc4122\UuidBuilder`. This also affects the
|
|
485
|
+
now-deprecated `Builder\DefaultUuidBuilder`, since this class now inherits
|
|
486
|
+
from `Rfc4122\UuidBuilder`.
|
|
487
|
+
* Add `convertTime()` method to `Converter\TimeConverterInterface`.
|
|
488
|
+
* Add `getTime()` method to `Provider\TimeProviderInterface`. It replaces the
|
|
489
|
+
`currentTime()` method.
|
|
490
|
+
* `Provider\Node\FallbackNodeProvider` now accepts only a
|
|
491
|
+
`Provider\Node\NodeProviderCollection` as its constructor parameter.
|
|
492
|
+
* `Provider\Time\FixedTimeProvider` no longer accepts an array but accepts only
|
|
493
|
+
`Type\Time` instances.
|
|
494
|
+
* `Provider\NodeProviderInterface::getNode()` now returns `Type\Hexadecimal`
|
|
495
|
+
instead of `string|false|null`.
|
|
496
|
+
* `Converter/TimeConverterInterface::calculateTime()` now returns
|
|
497
|
+
`Type\Hexadecimal` instead of `array`. The value is the full UUID timestamp
|
|
498
|
+
value (count of 100-nanosecond intervals since the Gregorian calendar epoch)
|
|
499
|
+
in hexadecimal format.
|
|
500
|
+
* Change methods in `NumberConverterInterface` to accept and return string values
|
|
501
|
+
instead of `mixed`; this simplifies the interface and makes it consistent.
|
|
502
|
+
* `Generator\DefaultTimeGenerator` no longer adds the variant and version bits
|
|
503
|
+
to the bytes it returns. These must be applied to the bytes afterwards.
|
|
504
|
+
* When encoding to bytes or decoding from bytes, `OrderedTimeCodec` now checks
|
|
505
|
+
whether the UUID is an RFC 4122 variant, version 1 UUID. If not, it will throw
|
|
506
|
+
an exception—`InvalidArgumentException` when using
|
|
507
|
+
`OrderedTimeCodec::encodeBinary()` and `UnsupportedOperationException` when
|
|
508
|
+
using `OrderedTimeCodec::decodeBytes()`.
|
|
509
|
+
|
|
510
|
+
### Deprecated
|
|
511
|
+
|
|
512
|
+
The following functionality is deprecated and will be removed in ramsey/uuid
|
|
513
|
+
5.0.0.
|
|
514
|
+
|
|
515
|
+
* The following methods from `UuidInterface` and `Uuid` are deprecated. Use their
|
|
516
|
+
counterparts on the `Rfc4122\FieldsInterface` returned by `Uuid::getFields()`.
|
|
517
|
+
* `getClockSeqHiAndReservedHex()`
|
|
518
|
+
* `getClockSeqLowHex()`
|
|
519
|
+
* `getClockSequenceHex()`
|
|
520
|
+
* `getFieldsHex()`
|
|
521
|
+
* `getNodeHex()`
|
|
522
|
+
* `getTimeHiAndVersionHex()`
|
|
523
|
+
* `getTimeLowHex()`
|
|
524
|
+
* `getTimeMidHex()`
|
|
525
|
+
* `getTimestampHex()`
|
|
526
|
+
* `getVariant()`
|
|
527
|
+
* `getVersion()`
|
|
528
|
+
* The following methods from `Uuid` are deprecated. Use the `Rfc4122\FieldsInterface`
|
|
529
|
+
instance returned by `Uuid::getFields()` to get the `Type\Hexadecimal` value
|
|
530
|
+
for these fields. You may use the new `Math\CalculatorInterface::toIntegerValue()`
|
|
531
|
+
method to convert the `Type\Hexadecimal` instances to instances of
|
|
532
|
+
`Type\Integer`. This library provides `Math\BrickMathCalculator`, which may be
|
|
533
|
+
used for this purpose, or you may use the arbitrary-precision arithemetic
|
|
534
|
+
library of your choice.
|
|
535
|
+
* `getClockSeqHiAndReserved()`
|
|
536
|
+
* `getClockSeqLow()`
|
|
537
|
+
* `getClockSequence()`
|
|
538
|
+
* `getNode()`
|
|
539
|
+
* `getTimeHiAndVersion()`
|
|
540
|
+
* `getTimeLow()`
|
|
541
|
+
* `getTimeMid()`
|
|
542
|
+
* `getTimestamp()`
|
|
543
|
+
* `getDateTime()` on `UuidInterface` and `Uuid` is deprecated. Use this method
|
|
544
|
+
only on instances of `Rfc4122\UuidV1` or `Nonstandard\UuidV6`.
|
|
545
|
+
* `getUrn()` on `UuidInterface` and `Uuid` is deprecated. It is available on
|
|
546
|
+
`Rfc4122\UuidInterface` and classes that implement it.
|
|
547
|
+
* The following methods are deprecated and have no direct replacements. However,
|
|
548
|
+
you may obtain the same information by calling `UuidInterface::getHex()` and
|
|
549
|
+
splitting the return value in half.
|
|
550
|
+
* `UuidInterface::getLeastSignificantBitsHex()`
|
|
551
|
+
* `UuidInterface::getMostSignificantBitsHex()`
|
|
552
|
+
* `Uuid::getLeastSignificantBitsHex()`
|
|
553
|
+
* `Uuid::getMostSignificantBitsHex()`
|
|
554
|
+
* `Uuid::getLeastSignificantBits()`
|
|
555
|
+
* `Uuid::getMostSignificantBits()`
|
|
556
|
+
* `UuidInterface::getNumberConverter()` and `Uuid::getNumberConverter()` are
|
|
557
|
+
deprecated. There is no alternative recommendation, so plan accordingly.
|
|
558
|
+
* `Builder\DefaultUuidBuilder` is deprecated; transition to `Rfc4122\UuidBuilder`.
|
|
559
|
+
* `Converter\Number\BigNumberConverter` is deprecated; transition to
|
|
560
|
+
`Converter\Number\GenericNumberConverter`.
|
|
561
|
+
* `Converter\Time\BigNumberTimeConverter` is deprecated; transition to
|
|
562
|
+
`Converter\Time\GenericTimeConverter`.
|
|
563
|
+
* The classes for representing and generating *degraded* UUIDs are deprecated.
|
|
564
|
+
These are no longer necessary; this library now behaves the same on 32-bit and
|
|
565
|
+
64-bit systems.
|
|
566
|
+
* `Builder\DegradedUuidBuilder`
|
|
567
|
+
* `Converter\Number\DegradedNumberConverter`
|
|
568
|
+
* `Converter\Time\DegradedTimeConverter`
|
|
569
|
+
* `DegradedUuid`
|
|
570
|
+
* The `Uuid::UUID_TYPE_IDENTIFIER` constant is deprecated. Use
|
|
571
|
+
`Uuid::UUID_TYPE_DCE_SECURITY` instead.
|
|
572
|
+
* The `Uuid::VALID_PATTERN` constant is deprecated. Use
|
|
573
|
+
`Validator\GenericValidator::getPattern()` or `Rfc4122\Validator::getPattern()`
|
|
574
|
+
instead.
|
|
575
|
+
|
|
576
|
+
### Removed
|
|
577
|
+
|
|
578
|
+
* Remove the following bytes generators and recommend
|
|
579
|
+
`Generator\RandomBytesGenerator` as a suitable replacement:
|
|
580
|
+
* `Generator\MtRandGenerator`
|
|
581
|
+
* `Generator\OpenSslGenerator`
|
|
582
|
+
* `Generator\SodiumRandomGenerator`
|
|
583
|
+
* Remove `Exception\UnsatisfiedDependencyException`. This library no longer
|
|
584
|
+
throws this exception.
|
|
585
|
+
* Remove the method `Provider\TimeProviderInterface::currentTime()`. Use
|
|
586
|
+
`Provider\TimeProviderInterface::getTime()` instead.
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
## 4.0.0-beta2 - 2020-03-01
|
|
590
|
+
|
|
591
|
+
## Added
|
|
592
|
+
|
|
593
|
+
* Add missing convenience methods for `Rfc4122\UuidV2`.
|
|
594
|
+
* Add `Provider\Node\StaticNodeProvider` to assist in setting a custom static
|
|
595
|
+
node value with the multicast bit set for version 1 UUIDs.
|
|
596
|
+
|
|
597
|
+
## Changed
|
|
598
|
+
|
|
599
|
+
* `Provider\NodeProviderInterface::getNode()` now returns `Type\Hexadecimal`
|
|
600
|
+
instead of `string|false|null`.
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
## 4.0.0-beta1 - 2020-02-27
|
|
604
|
+
|
|
605
|
+
### Added
|
|
606
|
+
|
|
607
|
+
* Add `ValidatorInterface::getPattern()` to return the regular expression
|
|
608
|
+
pattern used by the validator.
|
|
609
|
+
* Add `v6()` helper function for version 6 UUIDs.
|
|
610
|
+
|
|
611
|
+
### Changed
|
|
612
|
+
|
|
613
|
+
* Set the pattern constants on validators as `private`. Use the `getPattern()`
|
|
614
|
+
method instead.
|
|
615
|
+
* Change the `$node` parameter for `UuidFactoryInterface::uuid6()` to accept
|
|
616
|
+
`null` or `Type\Hexadecimal`.
|
|
617
|
+
* Accept `Type\Hexadecimal` for the `$node` parameter for
|
|
618
|
+
`UuidFactoryInterface::uuid1()`. This is in addition to the `int|string` types
|
|
619
|
+
already accepted, so there are no BC breaks. `Type\Hexadecimal` is now the
|
|
620
|
+
recommended type to pass for `$node`.
|
|
621
|
+
|
|
622
|
+
### Removed
|
|
623
|
+
|
|
624
|
+
* Remove `currentTime()` method from `Provider\Time\FixedTimeProvider` and
|
|
625
|
+
`Provider\Time\SystemTimeProvider`; it had previously been removed from
|
|
626
|
+
`Provider\TimeProviderInterface`.
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
## 4.0.0-alpha5 - 2020-02-23
|
|
630
|
+
|
|
631
|
+
### Added
|
|
632
|
+
|
|
633
|
+
* Introduce `Builder\BuilderCollection` and `Provider\Node\NodeProviderCollection`.
|
|
634
|
+
|
|
635
|
+
### Changed
|
|
636
|
+
|
|
637
|
+
* `Builder\FallbackBuilder` now accepts only a `Builder\BuilderCollection` as
|
|
638
|
+
its constructor parameter.
|
|
639
|
+
* `Provider\Node\FallbackNodeProvider` now accepts only a `Provider\Node\NodeProviderCollection`
|
|
640
|
+
as its constructor parameter.
|
|
641
|
+
* `Provider\Time\FixedTimeProvider` no longer accepts an array but accepts only
|
|
642
|
+
`Type\Time` instances.
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
## 4.0.0-alpha4 - 2020-02-23
|
|
646
|
+
|
|
647
|
+
### Added
|
|
648
|
+
|
|
649
|
+
* Add a `Type\TypeInterface` that each of the ramsey/uuid types implements.
|
|
650
|
+
* Support version 6 UUIDs; see <http://gh.peabody.io/uuidv6/>.
|
|
651
|
+
|
|
652
|
+
### Changed
|
|
653
|
+
|
|
654
|
+
* Rename `Type\IntegerValue` to `Type\Integer`. It was originally named
|
|
655
|
+
`IntegerValue` because static analysis sees `Integer` in docblock annotations
|
|
656
|
+
and treats it as the native `int` type. `Integer` is not a reserved word in
|
|
657
|
+
PHP, so it should be named `Integer` for consistency with other types in this
|
|
658
|
+
library. When using it, a class alias prevents static analysis from
|
|
659
|
+
complaining.
|
|
660
|
+
* Mark `Guid\Guid` and `Nonstandard\Uuid` classes as `final`.
|
|
661
|
+
* Add `uuid6()` method to `UuidFactoryInterface`.
|
|
662
|
+
|
|
663
|
+
### Deprecated
|
|
664
|
+
|
|
665
|
+
* `Uuid::UUID_TYPE_IDENTIFIER` is deprecated. Use `Uuid::UUID_TYPE_DCE_SECURITY`
|
|
666
|
+
instead.
|
|
667
|
+
* `Uuid::VALID_PATTERN` is deprecated. Use `Validator\GenericValidator::VALID_PATTERN`
|
|
668
|
+
instead.
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
## 4.0.0-alpha3 - 2020-02-21
|
|
672
|
+
|
|
673
|
+
### Fixed
|
|
674
|
+
|
|
675
|
+
* Fix microsecond rounding error on 32-bit systems.
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
## 4.0.0-alpha2 - 2020-02-21
|
|
679
|
+
|
|
680
|
+
### Added
|
|
681
|
+
|
|
682
|
+
* Add `Uuid::fromDateTime()` to create version 1 UUIDs from instances of
|
|
683
|
+
`\DateTimeInterface`.
|
|
684
|
+
* Add `Generator\NameGeneratorInterface` to support alternate methods of
|
|
685
|
+
generating bytes for version 3 and version 5 name-based UUID. By default,
|
|
686
|
+
ramsey/uuid uses the `Generator\DefaultNameGenerator`, which uses the standard
|
|
687
|
+
algorithm this library has used since the beginning. You may choose to use the
|
|
688
|
+
new `Generator\PeclUuidNameGenerator` to make use of the new
|
|
689
|
+
`uuid_generate_md5()` and `uuid_generate_sha1()` functions in ext-uuid version
|
|
690
|
+
1.1.0.
|
|
691
|
+
|
|
692
|
+
### Changed
|
|
693
|
+
|
|
694
|
+
* Add `fromDateTime()` method to `UuidFactoryInterface`.
|
|
695
|
+
* Change `UuidInterface::getHex()` to return a `Ramsey\Uuid\Type\Hexadecimal` instance.
|
|
696
|
+
* Change `UuidInterface::getInteger()` to return a `Ramsey\Uuid\Type\IntegerValue` instance.
|
|
697
|
+
|
|
698
|
+
### Fixed
|
|
699
|
+
|
|
700
|
+
* Round microseconds to six digits when getting DateTime from v1 UUIDs. This
|
|
701
|
+
circumvents a needless exception for an otherwise valid time-based UUID.
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
## 4.0.0-alpha1 - 2020-01-22
|
|
705
|
+
|
|
706
|
+
### Added
|
|
707
|
+
|
|
708
|
+
* Add `Validator\ValidatorInterface` and `Validator\GenericValidator` to allow
|
|
709
|
+
flexibility in validating UUIDs/GUIDs.
|
|
710
|
+
* Add ability to change the default validator used by `Uuid` through
|
|
711
|
+
`FeatureSet::setValidator()`.
|
|
712
|
+
* Add `getValidator()` and `setValidator()` to `UuidFactory`.
|
|
713
|
+
* Add an internal `InvalidArgumentException` that descends from the built-in
|
|
714
|
+
PHP `\InvalidArgumentException`. All places that used to throw
|
|
715
|
+
`\InvalidArgumentException` now throw `Ramsey\Uuid\Exception\InvalidArgumentException`.
|
|
716
|
+
This should not cause any BC breaks, however.
|
|
717
|
+
* Add an internal `DateTimeException` that descends from the built-in PHP
|
|
718
|
+
`\RuntimeException`. `Uuid::getDateTime()` may throw this exception if
|
|
719
|
+
`\DateTimeImmutable` throws an error or exception.
|
|
720
|
+
* Add `RandomSourceException` that descends from the built-in PHP
|
|
721
|
+
`\RuntimeException`. `DefaultTimeGenerator`, `RandomBytesGenerator`, and
|
|
722
|
+
`RandomNodeProvider` may throw this exception if `random_bytes()` or
|
|
723
|
+
`random_int()` throw an error or exception.
|
|
724
|
+
* Add `Fields\FieldsInterface` and `Rfc4122\FieldsInterface` to define
|
|
725
|
+
field layouts for UUID variants. The implementations `Rfc4122\Fields`,
|
|
726
|
+
`Guid\Fields`, and `Nonstandard\Fields` store the 16-byte,
|
|
727
|
+
binary string representation of the UUID internally, and these manage
|
|
728
|
+
conversion of the binary string into the hexadecimal field values.
|
|
729
|
+
* Add `Rfc4122\UuidInterface` to specifically represent RFC 4122 variant UUIDs.
|
|
730
|
+
* Add classes to represent each version of RFC 4122 UUID. When generating new
|
|
731
|
+
UUIDs or creating UUIDs from existing strings, bytes, or integers, if the UUID
|
|
732
|
+
is an RFC 4122 variant, one of these instances will be returned:
|
|
733
|
+
* `Rfc4122\UuidV1`
|
|
734
|
+
* `Rfc4122\UuidV2`
|
|
735
|
+
* `Rfc4122\UuidV3`
|
|
736
|
+
* `Rfc4122\UuidV4`
|
|
737
|
+
* `Rfc4122\UuidV5`
|
|
738
|
+
* `Rfc4122\NilUuid`
|
|
739
|
+
* Add `Rfc4122\UuidBuilder` to build RFC 4122 variant UUIDs. This replaces the
|
|
740
|
+
existing `Builder\DefaultUuidBuilder`, which is now deprecated.
|
|
741
|
+
* Add ability to generate version 2 (DCE Security) UUIDs, including the static
|
|
742
|
+
method `Uuid::uuid2()`, which returns an `Rfc4122\UuidV2` instance.
|
|
743
|
+
* Add classes to represent GUIDs and nonstandard (non-RFC 4122 variant) UUIDs:
|
|
744
|
+
* `Guid\Guid`
|
|
745
|
+
* `Nonstandard\Uuid`.
|
|
746
|
+
* Introduce a `Builder\FallbackBuilder`, used by `FeatureSet` to help decide
|
|
747
|
+
whether to return a `Uuid` or `Nonstandard\Uuid` when decoding a
|
|
748
|
+
UUID string or bytes.
|
|
749
|
+
* Introduce `Type\Hexadecimal`, `Type\IntegerValue`, and `Type\Time` for
|
|
750
|
+
improved type-safety when dealing with arbitrary string values.
|
|
751
|
+
* Introduce `Math\CalculatorInterface` for representing calculators to perform
|
|
752
|
+
arithmetic operations on integers.
|
|
753
|
+
* Depend on [brick/math](https://github.com/brick/math) for the
|
|
754
|
+
`Math\BrickMathCalculator`, which is the default calculator used by this
|
|
755
|
+
library when math cannot be performed in native PHP due to integer size
|
|
756
|
+
limitations. The calculator is configurable and may be changed, if desired.
|
|
757
|
+
* Add `Converter\Number\GenericNumberConverter` and
|
|
758
|
+
`Converter\Time\GenericTimeConverter` which will use the calculator provided
|
|
759
|
+
to convert numbers and time to values for UUIDs.
|
|
760
|
+
* The `\DateTimeInterface` instance returned by `UuidInterface::getDateTime()`
|
|
761
|
+
(and now `Rfc4122\UuidV1::getDateTime()`) now includes microseconds, as
|
|
762
|
+
specified by the version 1 UUID.
|
|
763
|
+
|
|
764
|
+
### Changed
|
|
765
|
+
|
|
766
|
+
* Set minimum required PHP version to 7.2.
|
|
767
|
+
* Add `__toString()` method to `UuidInterface`.
|
|
768
|
+
* The `UuidInterface::getDateTime()` method now specifies `\DateTimeInterface`
|
|
769
|
+
as the return value, rather than `\DateTime`; `Uuid::getDateTime()` now
|
|
770
|
+
returns an instance of `\DateTimeImmutable` instead of `\DateTime`.
|
|
771
|
+
* Add `getFields()` method to `UuidInterface`.
|
|
772
|
+
* Add `getValidator()` method to `UuidFactoryInterface`.
|
|
773
|
+
* Add `uuid2()` method to `UuidFactoryInterface`.
|
|
774
|
+
* Add `convertTime()` method to `Converter\TimeConverterInterface`.
|
|
775
|
+
* Add `getTime()` method to `Provider\TimeProviderInterface`.
|
|
776
|
+
* Change `Uuid::getFields()` to return an instance of `Fields\FieldsInterface`.
|
|
777
|
+
Previously, it returned an array of integer values (on 64-bit systems only).
|
|
778
|
+
* Change the first required constructor parameter for `Uuid` from
|
|
779
|
+
`array $fields` to `Rfc4122\FieldsInterface $fields`.
|
|
780
|
+
* Introduce `Converter\TimeConverterInterface $timeConverter` as fourth required
|
|
781
|
+
constructor parameter for `Uuid` and second required constructor parameter for
|
|
782
|
+
`Builder\DefaultUuidBuilder`.
|
|
783
|
+
* Change `UuidInterface::getInteger()` to always return a `string` value instead
|
|
784
|
+
of `mixed`. This is a string representation of a 128-bit integer. You may then
|
|
785
|
+
use a math library of your choice (bcmath, gmp, etc.) to operate on the
|
|
786
|
+
string integer.
|
|
787
|
+
* Change the second required parameter of `Builder\UuidBuilderInterface::build()`
|
|
788
|
+
from `array $fields` to `string $bytes`. Rather than accepting an array of
|
|
789
|
+
hexadecimal strings as UUID fields, the `build()` method now expects a byte
|
|
790
|
+
string.
|
|
791
|
+
* `Generator\DefaultTimeGenerator` no longer adds the variant and version bits
|
|
792
|
+
to the bytes it returns. These must be applied to the bytes afterwards.
|
|
793
|
+
* `Converter/TimeConverterInterface::calculateTime()` now returns
|
|
794
|
+
`Type\Hexadecimal` instead of `array`. The value is the full UUID timestamp
|
|
795
|
+
value (count of 100-nanosecond intervals since the Gregorian calendar epoch)
|
|
796
|
+
in hexadecimal format.
|
|
797
|
+
* Change methods in converter interfaces to accept and return string values
|
|
798
|
+
instead of `mixed`; this simplifies the interface and makes it consistent:
|
|
799
|
+
* `NumberConverterInterface::fromHex(string $hex): string`
|
|
800
|
+
* `NumberConverterInterface::toHex(string $number): string`
|
|
801
|
+
* `TimeConverterInterface::calculateTime(string $seconds, string $microseconds): array`
|
|
802
|
+
* `UnsupportedOperationException` is now descended from `\LogicException`.
|
|
803
|
+
Previously, it descended from `\RuntimeException`.
|
|
804
|
+
* When encoding to bytes or decoding from bytes, `OrderedTimeCodec` now checks
|
|
805
|
+
whether the UUID is an RFC 4122 variant, version 1 UUID. If not, it will throw
|
|
806
|
+
an exception—`InvalidArgumentException` when using
|
|
807
|
+
`OrderedTimeCodec::encodeBinary()` and `UnsupportedOperationException` when
|
|
808
|
+
using `OrderedTimeCodec::decodeBytes()`.
|
|
809
|
+
* Out of the box, `Uuid::fromString()`, `Uuid::fromBytes()`, and
|
|
810
|
+
`Uuid::fromInteger()` will now return either an `Rfc4122\UuidInterface`
|
|
811
|
+
instance or an instance of `Nonstandard\Uuid`, depending on whether the input
|
|
812
|
+
contains an RFC 4122 variant UUID with a valid version identifier. Both
|
|
813
|
+
implement `UuidInterface`, so BC breaks should not occur if typehints use the
|
|
814
|
+
interface.
|
|
815
|
+
* By default, the following static methods will now return the specific instance
|
|
816
|
+
types. This should not cause any BC breaks if typehints target `UuidInterface`:
|
|
817
|
+
* `Uuid::uuid1` returns `Rfc4122\UuidV1`
|
|
818
|
+
* `Uuid::uuid3` returns `Rfc4122\UuidV3`
|
|
819
|
+
* `Uuid::uuid4` returns `Rfc4122\UuidV4`
|
|
820
|
+
* `Uuid::uuid5` returns `Rfc4122\UuidV5`
|
|
821
|
+
|
|
822
|
+
### Deprecated
|
|
823
|
+
|
|
824
|
+
The following functionality is deprecated and will be removed in ramsey/uuid
|
|
825
|
+
5.0.0.
|
|
826
|
+
|
|
827
|
+
* The following methods from `UuidInterface` and `Uuid` are deprecated. Use their
|
|
828
|
+
counterparts on the `Rfc4122\FieldsInterface` returned by `Uuid::getFields()`.
|
|
829
|
+
* `getClockSeqHiAndReservedHex()`
|
|
830
|
+
* `getClockSeqLowHex()`
|
|
831
|
+
* `getClockSequenceHex()`
|
|
832
|
+
* `getFieldsHex()`
|
|
833
|
+
* `getNodeHex()`
|
|
834
|
+
* `getTimeHiAndVersionHex()`
|
|
835
|
+
* `getTimeLowHex()`
|
|
836
|
+
* `getTimeMidHex()`
|
|
837
|
+
* `getTimestampHex()`
|
|
838
|
+
* `getVariant()`
|
|
839
|
+
* `getVersion()`
|
|
840
|
+
* The following methods from `Uuid` are deprecated. Use the `Rfc4122\FieldsInterface`
|
|
841
|
+
instance returned by `Uuid::getFields()` to get the `Type\Hexadecimal` value
|
|
842
|
+
for these fields, and then use the arbitrary-precision arithmetic library of
|
|
843
|
+
your choice to convert them to string integers.
|
|
844
|
+
* `getClockSeqHiAndReserved()`
|
|
845
|
+
* `getClockSeqLow()`
|
|
846
|
+
* `getClockSequence()`
|
|
847
|
+
* `getNode()`
|
|
848
|
+
* `getTimeHiAndVersion()`
|
|
849
|
+
* `getTimeLow()`
|
|
850
|
+
* `getTimeMid()`
|
|
851
|
+
* `getTimestamp()`
|
|
852
|
+
* `getDateTime()` on `UuidInterface` and `Uuid` is deprecated. Use this method
|
|
853
|
+
only on instances of `Rfc4122\UuidV1`.
|
|
854
|
+
* `getUrn()` on `UuidInterface` and `Uuid` is deprecated. It is available on
|
|
855
|
+
`Rfc4122\UuidInterface` and classes that implement it.
|
|
856
|
+
* The following methods are deprecated and have no direct replacements. However,
|
|
857
|
+
you may obtain the same information by calling `UuidInterface::getHex()` and
|
|
858
|
+
splitting the return value in half.
|
|
859
|
+
* `UuidInterface::getLeastSignificantBitsHex()`
|
|
860
|
+
* `UuidInterface::getMostSignificantBitsHex()`
|
|
861
|
+
* `Uuid::getLeastSignificantBitsHex()`
|
|
862
|
+
* `Uuid::getMostSignificantBitsHex()`
|
|
863
|
+
* `Uuid::getLeastSignificantBits()`
|
|
864
|
+
* `Uuid::getMostSignificantBits()`
|
|
865
|
+
* `UuidInterface::getNumberConverter()` and `Uuid::getNumberConverter()` are
|
|
866
|
+
deprecated. There is no alternative recommendation, so plan accordingly.
|
|
867
|
+
* `Builder\DefaultUuidBuilder` is deprecated; transition to
|
|
868
|
+
`Rfc4122\UuidBuilder`.
|
|
869
|
+
* `Converter\Number\BigNumberConverter` is deprecated; transition to
|
|
870
|
+
`Converter\Number\GenericNumberConverter`.
|
|
871
|
+
* `Converter\Time\BigNumberTimeConverter` is deprecated; transition to
|
|
872
|
+
`Converter\Time\GenericTimeConverter`.
|
|
873
|
+
* `Provider\TimeProviderInterface::currentTime()` is deprecated; transition to
|
|
874
|
+
the `getTimestamp()` method on the same interface.
|
|
875
|
+
* The classes for representing and generating *degraded* UUIDs are deprecated.
|
|
876
|
+
These are no longer necessary; this library now behaves the same on 32-bit and
|
|
877
|
+
64-bit PHP.
|
|
878
|
+
* `Builder\DegradedUuidBuilder`
|
|
879
|
+
* `Converter\Number\DegradedNumberConverter`
|
|
880
|
+
* `Converter\Time\DegradedTimeConverter`
|
|
881
|
+
* `DegradedUuid`
|
|
882
|
+
|
|
883
|
+
### Removed
|
|
884
|
+
|
|
885
|
+
* Remove the following bytes generators and recommend
|
|
886
|
+
`Generator\RandomBytesGenerator` as a suitable replacement:
|
|
887
|
+
* `Generator\MtRandGenerator`
|
|
888
|
+
* `Generator\OpenSslGenerator`
|
|
889
|
+
* `Generator\SodiumRandomGenerator`
|
|
890
|
+
* Remove `Exception\UnsatisfiedDependencyException`. This library no longer
|
|
891
|
+
throws this exception.
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
## 3.9.7 - 2022-12-19
|
|
895
|
+
|
|
896
|
+
### Fixed
|
|
897
|
+
|
|
898
|
+
* Add `#[ReturnTypeWillChange]` to `Uuid::jsonSerialize()` method.
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
## 3.9.6 - 2021-09-25
|
|
902
|
+
|
|
903
|
+
### Fixed
|
|
904
|
+
|
|
905
|
+
* Switch back to `^8.0` in the PHP version requirement.
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
## 3.9.5 - 2021-09-24
|
|
909
|
+
|
|
910
|
+
### Fixed
|
|
911
|
+
|
|
912
|
+
* Indicate support for PHP 8.1, using `~8.1.0` to prevent installations on 8.2
|
|
913
|
+
until the library is ready.
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
## 3.9.4 - 2021-08-06
|
|
917
|
+
|
|
918
|
+
### Fixed
|
|
919
|
+
|
|
920
|
+
* Allow installation of paragonie/random_compat v9.99.100 (for PHP 8 compatibility).
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
## 3.9.3 - 2020-02-20
|
|
924
|
+
|
|
925
|
+
### Fixed
|
|
926
|
+
|
|
927
|
+
* For v1 UUIDs, round down for timestamps so that microseconds do not bump the
|
|
928
|
+
timestamp to the next second.
|
|
929
|
+
|
|
930
|
+
As an example, consider the case of timestamp `1` with `600000` microseconds
|
|
931
|
+
(`1.600000`). This is the first second after midnight on January 1, 1970, UTC.
|
|
932
|
+
Previous versions of this library had a bug that would round this to `2`, so
|
|
933
|
+
the rendered time was `1970-01-01 00:00:02`. This was incorrect. Despite
|
|
934
|
+
having `600000` microseconds, the time should not round up to the next second.
|
|
935
|
+
Rather, the time should be `1970-01-01 00:00:01.600000`. Since this version of
|
|
936
|
+
ramsey/uuid does not support microseconds, the microseconds are dropped, and
|
|
937
|
+
the time is `1970-01-01 00:00:01`. No rounding should occur.
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
## 3.9.2 - 2019-12-17
|
|
941
|
+
|
|
942
|
+
### Fixed
|
|
943
|
+
|
|
944
|
+
* Check whether files returned by `/sys/class/net/*/address` are readable
|
|
945
|
+
before attempting to read them. This avoids a PHP warning that was being
|
|
946
|
+
emitted on hosts that do not grant permission to read these files.
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
## 3.9.1 - 2019-12-01
|
|
950
|
+
|
|
951
|
+
### Fixed
|
|
952
|
+
|
|
953
|
+
* Fix `RandomNodeProvider` behavior on 32-bit systems. The `RandomNodeProvider`
|
|
954
|
+
was converting a 6-byte string to a decimal number, which is a 48-bit,
|
|
955
|
+
unsigned integer. This caused problems on 32-bit systems and has now been
|
|
956
|
+
resolved.
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
## 3.9.0 - 2019-11-30
|
|
960
|
+
|
|
961
|
+
### Added
|
|
962
|
+
|
|
963
|
+
* Add function API as convenience. The functions are available in the
|
|
964
|
+
`Ramsey\Uuid` namespace.
|
|
965
|
+
* `v1(int|string|null $node = null, int|null $clockSeq = null): string`
|
|
966
|
+
* `v3(string|UuidInterface $ns, string $name): string`
|
|
967
|
+
* `v4(): string`
|
|
968
|
+
* `v5(string|UuidInterface $ns, string $name): string`
|
|
969
|
+
|
|
970
|
+
### Changed
|
|
971
|
+
|
|
972
|
+
* Use paragonie/random-lib instead of ircmaxell/random-lib. This is a
|
|
973
|
+
non-breaking change.
|
|
974
|
+
* Use a high-strength generator by default, when using `RandomLibAdapter`. This
|
|
975
|
+
is a non-breaking change.
|
|
976
|
+
|
|
977
|
+
### Deprecated
|
|
978
|
+
|
|
979
|
+
These will be removed in ramsey/uuid version 4.0.0:
|
|
980
|
+
|
|
981
|
+
* `MtRandGenerator`, `OpenSslGenerator`, and `SodiumRandomGenerator` are
|
|
982
|
+
deprecated in favor of using the default `RandomBytesGenerator`.
|
|
983
|
+
|
|
984
|
+
### Fixed
|
|
985
|
+
|
|
986
|
+
* Set `ext-json` as a required dependency in `composer.json`.
|
|
987
|
+
* Use `PHP_OS` instead of `php_uname()` when determining the system OS, for
|
|
988
|
+
cases when `php_uname()` is disabled for security reasons.
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
## 3.8.0 - 2018-07-19
|
|
992
|
+
|
|
993
|
+
### Added
|
|
994
|
+
|
|
995
|
+
* Support discovery of MAC addresses on FreeBSD systems
|
|
996
|
+
* Use a polyfill to provide PHP ctype functions when running on systems where the
|
|
997
|
+
ctype functions are not part of the PHP build
|
|
998
|
+
* Disallow a trailing newline character when validating UUIDs
|
|
999
|
+
* Annotate thrown exceptions for improved IDE hinting
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
## 3.7.3 - 2018-01-19
|
|
1003
|
+
|
|
1004
|
+
### Fixed
|
|
1005
|
+
|
|
1006
|
+
* Gracefully handle cases where `glob()` returns false when searching
|
|
1007
|
+
`/sys/class/net/*/address` files on Linux
|
|
1008
|
+
* Fix off-by-one error in `DefaultTimeGenerator`
|
|
1009
|
+
|
|
1010
|
+
### Security
|
|
1011
|
+
|
|
1012
|
+
* Switch to `random_int()` from `mt_rand()` for better random numbers
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
## 3.7.2 - 2018-01-13
|
|
1016
|
+
|
|
1017
|
+
### Fixed
|
|
1018
|
+
|
|
1019
|
+
* Check sysfs on Linux to determine the node identifier; this provides a
|
|
1020
|
+
reliable way to identify the node on Docker images, etc.
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
## 3.7.1 - 2017-09-22
|
|
1024
|
+
|
|
1025
|
+
### Fixed
|
|
1026
|
+
|
|
1027
|
+
* Set the multicast bit for random nodes, according to RFC 4122, §4.5
|
|
1028
|
+
|
|
1029
|
+
### Security
|
|
1030
|
+
|
|
1031
|
+
* Use `random_bytes()` when generating random nodes
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
## 3.7.0 - 2017-08-04
|
|
1035
|
+
|
|
1036
|
+
### Added
|
|
1037
|
+
|
|
1038
|
+
* Add the following UUID version constants:
|
|
1039
|
+
* `Uuid::UUID_TYPE_TIME`
|
|
1040
|
+
* `Uuid::UUID_TYPE_IDENTIFIER`
|
|
1041
|
+
* `Uuid::UUID_TYPE_HASH_MD5`
|
|
1042
|
+
* `Uuid::UUID_TYPE_RANDOM`
|
|
1043
|
+
* `Uuid::UUID_TYPE_HASH_SHA1`
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
## 3.6.1 - 2017-03-26
|
|
1047
|
+
|
|
1048
|
+
### Fixed
|
|
1049
|
+
|
|
1050
|
+
* Optimize UUID string decoding by using `str_pad()` instead of `sprintf()`
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
## 3.6.0 - 2017-03-18
|
|
1054
|
+
|
|
1055
|
+
### Added
|
|
1056
|
+
|
|
1057
|
+
* Add `InvalidUuidStringException`, which is thrown when attempting to decode an
|
|
1058
|
+
invalid string UUID; this does not introduce any BC issues, since the new
|
|
1059
|
+
exception inherits from the previously used `InvalidArgumentException`
|
|
1060
|
+
|
|
1061
|
+
### Fixed
|
|
1062
|
+
|
|
1063
|
+
* Improve memory usage when generating large quantities of UUIDs (use `str_pad()`
|
|
1064
|
+
and `dechex()` instead of `sprintf()`)
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
## 3.5.2 - 2016-11-22
|
|
1068
|
+
|
|
1069
|
+
### Fixed
|
|
1070
|
+
|
|
1071
|
+
* Improve test coverage
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
## 3.5.1 - 2016-10-02
|
|
1075
|
+
|
|
1076
|
+
### Fixed
|
|
1077
|
+
|
|
1078
|
+
* Fix issue where the same UUIDs were not being treated as equal when using
|
|
1079
|
+
mixed cases
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
## 3.5.0 - 2016-08-02
|
|
1083
|
+
|
|
1084
|
+
### Added
|
|
1085
|
+
|
|
1086
|
+
* Add `OrderedTimeCodec` to store UUID in an optimized way for InnoDB
|
|
1087
|
+
|
|
1088
|
+
### Fixed
|
|
1089
|
+
|
|
1090
|
+
* Fix invalid node generation in `RandomNodeProvider`
|
|
1091
|
+
* Avoid multiple unnecessary system calls by caching failed attempt to retrieve
|
|
1092
|
+
system node
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
## 3.4.1 - 2016-04-23
|
|
1096
|
+
|
|
1097
|
+
### Fixed
|
|
1098
|
+
|
|
1099
|
+
* Fix test that violated a PHP CodeSniffer rule, breaking the build
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
## 3.4.0 - 2016-04-23
|
|
1103
|
+
|
|
1104
|
+
### Added
|
|
1105
|
+
|
|
1106
|
+
* Add `TimestampFirstCombCodec` and `TimestampLastCombCodec` codecs to provide
|
|
1107
|
+
the ability to generate [COMB sequential UUIDs] with the timestamp encoded as
|
|
1108
|
+
either the first 48 bits or the last 48 bits
|
|
1109
|
+
* Improve logic of `CombGenerator` for COMB sequential UUIDs
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
## 3.3.0 - 2016-03-22
|
|
1113
|
+
|
|
1114
|
+
### Security
|
|
1115
|
+
|
|
1116
|
+
* Drop the use of OpenSSL as a fallback and use [paragonie/random_compat] to
|
|
1117
|
+
support `RandomBytesGenerator` in versions of PHP earlier than 7.0;
|
|
1118
|
+
this addresses and fixes the [collision issue]
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
## 3.2.0 - 2016-02-17
|
|
1122
|
+
|
|
1123
|
+
### Added
|
|
1124
|
+
|
|
1125
|
+
* Add `SodiumRandomGenerator` to allow use of the [PECL libsodium extension] as
|
|
1126
|
+
a random bytes generator when creating UUIDs
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
## 3.1.0 - 2015-12-17
|
|
1130
|
+
|
|
1131
|
+
### Added
|
|
1132
|
+
|
|
1133
|
+
* Implement the PHP `Serializable` interface to provide the ability to
|
|
1134
|
+
serialize/unserialize UUID objects
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
## 3.0.1 - 2015-10-21
|
|
1138
|
+
|
|
1139
|
+
### Added
|
|
1140
|
+
|
|
1141
|
+
* Adopt the [Contributor Code of Conduct] for this project
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
## 3.0.0 - 2015-09-28
|
|
1145
|
+
|
|
1146
|
+
The 3.0.0 release represents a significant step for the ramsey/uuid library.
|
|
1147
|
+
While the simple and familiar API used in previous versions remains intact, this
|
|
1148
|
+
release provides greater flexibility to integrators, including the ability to
|
|
1149
|
+
inject your own number generators, UUID codecs, node and time providers, and
|
|
1150
|
+
more.
|
|
1151
|
+
|
|
1152
|
+
*Please note: The changelog for 3.0.0 includes all notes from the alpha and beta
|
|
1153
|
+
versions leading up to this release.*
|
|
1154
|
+
|
|
1155
|
+
### Added
|
|
1156
|
+
|
|
1157
|
+
* Add a number of generators that may be used to override the library defaults
|
|
1158
|
+
for generating random bytes (version 4) or time-based (version 1) UUIDs
|
|
1159
|
+
* `CombGenerator` to allow generation of sequential UUIDs
|
|
1160
|
+
* `OpenSslGenerator` to generate random bytes on systems where
|
|
1161
|
+
`openssql_random_pseudo_bytes()` is present
|
|
1162
|
+
* `MtRandGenerator` to provide a fallback in the event other random generators
|
|
1163
|
+
are not present
|
|
1164
|
+
* `RandomLibAdapter` to allow use of [ircmaxell/random-lib]
|
|
1165
|
+
* `RandomBytesGenerator` for use with PHP 7; ramsey/uuid will default to use
|
|
1166
|
+
this generator when running on PHP 7
|
|
1167
|
+
* Refactor time-based (version 1) UUIDs into a `TimeGeneratorInterface` to
|
|
1168
|
+
allow for other sources to generate version 1 UUIDs in this library
|
|
1169
|
+
* `PeclUuidTimeGenerator` and `PeclUuidRandomGenerator` for creating version
|
|
1170
|
+
1 or version 4 UUIDs using the pecl-uuid extension
|
|
1171
|
+
* Add a `setTimeGenerator` method on `UuidFactory` to override the default time
|
|
1172
|
+
generator
|
|
1173
|
+
* Add option to enable `PeclUuidTimeGenerator` via `FeatureSet`
|
|
1174
|
+
* Support GUID generation by configuring a `FeatureSet` to use GUIDs
|
|
1175
|
+
* Allow UUIDs to be serialized as JSON through `JsonSerializable`
|
|
1176
|
+
|
|
1177
|
+
### Changed
|
|
1178
|
+
|
|
1179
|
+
* Change root namespace from "Rhumsaa" to "Ramsey;" in most cases, simply
|
|
1180
|
+
making this change in your applications is the only upgrade path you will
|
|
1181
|
+
need—everything else should work as expected
|
|
1182
|
+
* No longer consider `Uuid` class as `final`; everything is now based around
|
|
1183
|
+
interfaces and factories, allowing you to use this package as a base to
|
|
1184
|
+
implement other kinds of UUIDs with different dependencies
|
|
1185
|
+
* Return an object of type `DegradedUuid` on 32-bit systems to indicate that
|
|
1186
|
+
certain features are not available
|
|
1187
|
+
* Default `RandomLibAdapter` to a medium-strength generator with
|
|
1188
|
+
[ircmaxell/random-lib]; this is configurable, so other generator strengths may
|
|
1189
|
+
be used
|
|
1190
|
+
|
|
1191
|
+
### Removed
|
|
1192
|
+
|
|
1193
|
+
* Remove `PeclUuidFactory` in favor of using pecl-uuid with generators
|
|
1194
|
+
* Remove `timeConverter` and `timeProvider` properties, setters, and getters in
|
|
1195
|
+
both `FeatureSet` and `UuidFactory` as those are now exclusively used by the
|
|
1196
|
+
default `TimeGenerator`
|
|
1197
|
+
* Move UUID [Doctrine field type] to [ramsey/uuid-doctrine]
|
|
1198
|
+
* Move `uuid` console application to [ramsey/uuid-console]
|
|
1199
|
+
* Remove `Uuid::VERSION` package version constant
|
|
1200
|
+
|
|
1201
|
+
### Fixed
|
|
1202
|
+
|
|
1203
|
+
* Improve GUID support to ensure that:
|
|
1204
|
+
* On little endian (LE) architectures, the byte order of the first three
|
|
1205
|
+
fields is LE
|
|
1206
|
+
* On big endian (BE) architectures, it is the same as a GUID
|
|
1207
|
+
* String representation is always the same
|
|
1208
|
+
* Fix exception message for `DegradedNumberConverter::fromHex()`
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
## 3.0.0-beta1 - 2015-08-31
|
|
1212
|
+
|
|
1213
|
+
### Fixed
|
|
1214
|
+
|
|
1215
|
+
* Improve GUID support to ensure that:
|
|
1216
|
+
* On little endian (LE) architectures, the byte order of the first three
|
|
1217
|
+
fields is LE
|
|
1218
|
+
* On big endian (BE) architectures, it is the same as a GUID
|
|
1219
|
+
* String representation is always the same
|
|
1220
|
+
* Fix exception message for `DegradedNumberConverter::fromHex()`
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
## 3.0.0-alpha3 - 2015-07-28
|
|
1224
|
+
|
|
1225
|
+
### Added
|
|
1226
|
+
|
|
1227
|
+
* Enable use of custom `TimeGenerator` implementations
|
|
1228
|
+
* Add a `setTimeGenerator` method on `UuidFactory` to override the default time
|
|
1229
|
+
generator
|
|
1230
|
+
* Add option to enable `PeclUuidTimeGenerator` via `FeatureSet`
|
|
1231
|
+
|
|
1232
|
+
### Removed
|
|
1233
|
+
|
|
1234
|
+
* Remove `timeConverter` and `timeProvider` properties, setters, and getters in
|
|
1235
|
+
both `FeatureSet` and `UuidFactory` as those are now exclusively used by the
|
|
1236
|
+
default `TimeGenerator`
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
## 3.0.0-alpha2 - 2015-07-28
|
|
1240
|
+
|
|
1241
|
+
### Added
|
|
1242
|
+
|
|
1243
|
+
* Refactor time-based (version 1) UUIDs into a `TimeGeneratorInterface` to allow
|
|
1244
|
+
for other sources to generate version 1 UUIDs in this library
|
|
1245
|
+
* Add `PeclUuidTimeGenerator` and `PeclUuidRandomGenerator` for creating version
|
|
1246
|
+
1 or version 4 UUIDs using the pecl-uuid extension
|
|
1247
|
+
* Add `RandomBytesGenerator` for use with PHP 7. ramsey/uuid will default to use
|
|
1248
|
+
this generator when running on PHP 7
|
|
1249
|
+
|
|
1250
|
+
### Changed
|
|
1251
|
+
|
|
1252
|
+
* Default `RandomLibAdapter` to a medium-strength generator with
|
|
1253
|
+
[ircmaxell/random-lib]; this is configurable, so other generator strengths may
|
|
1254
|
+
be used
|
|
1255
|
+
|
|
1256
|
+
### Removed
|
|
1257
|
+
|
|
1258
|
+
* Remove `PeclUuidFactory` in favor of using pecl-uuid with generators
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
## 3.0.0-alpha1 - 2015-07-16
|
|
1262
|
+
|
|
1263
|
+
### Added
|
|
1264
|
+
|
|
1265
|
+
* Allow dependency injection through `UuidFactory` and/or extending `FeatureSet`
|
|
1266
|
+
to override any package defaults
|
|
1267
|
+
* Add a number of generators that may be used to override the library defaults:
|
|
1268
|
+
* `CombGenerator` to allow generation of sequential UUIDs
|
|
1269
|
+
* `OpenSslGenerator` to generate random bytes on systems where
|
|
1270
|
+
`openssql_random_pseudo_bytes()` is present
|
|
1271
|
+
* `MtRandGenerator` to provide a fallback in the event other random generators
|
|
1272
|
+
are not present
|
|
1273
|
+
* `RandomLibAdapter` to allow use of [ircmaxell/random-lib]
|
|
1274
|
+
* Support GUID generation by configuring a `FeatureSet` to use GUIDs
|
|
1275
|
+
* Allow UUIDs to be serialized as JSON through `JsonSerializable`
|
|
1276
|
+
|
|
1277
|
+
### Changed
|
|
1278
|
+
|
|
1279
|
+
* Change root namespace from "Rhumsaa" to "Ramsey;" in most cases, simply
|
|
1280
|
+
making this change in your applications is the only upgrade path you will
|
|
1281
|
+
need—everything else should work as expected
|
|
1282
|
+
* No longer consider `Uuid` class as `final`; everything is now based around
|
|
1283
|
+
interfaces and factories, allowing you to use this package as a base to
|
|
1284
|
+
implement other kinds of UUIDs with different dependencies
|
|
1285
|
+
* Return an object of type `DegradedUuid` on 32-bit systems to indicate that
|
|
1286
|
+
certain features are not available
|
|
1287
|
+
|
|
1288
|
+
### Removed
|
|
1289
|
+
|
|
1290
|
+
* Move UUID [Doctrine field type] to [ramsey/uuid-doctrine]
|
|
1291
|
+
* Move `uuid` console application to [ramsey/uuid-console]
|
|
1292
|
+
* Remove `Uuid::VERSION` package version constant
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
## 2.9.0 - 2016-03-22
|
|
1296
|
+
|
|
1297
|
+
### Security
|
|
1298
|
+
|
|
1299
|
+
* Drop the use of OpenSSL as a fallback and use [paragonie/random_compat] to
|
|
1300
|
+
support `RandomBytesGenerator` in versions of PHP earlier than 7.0;
|
|
1301
|
+
this addresses and fixes the [collision issue]
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
## 2.8.4 - 2015-12-17
|
|
1305
|
+
|
|
1306
|
+
### Added
|
|
1307
|
+
|
|
1308
|
+
* Add support for symfony/console v3 in the `uuid` CLI application
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
## 2.8.3 - 2015-08-31
|
|
1312
|
+
|
|
1313
|
+
### Fixed
|
|
1314
|
+
|
|
1315
|
+
* Fix exception message in `Uuid::calculateUuidTime()`
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
## 2.8.2 - 2015-07-23
|
|
1319
|
+
|
|
1320
|
+
### Fixed
|
|
1321
|
+
|
|
1322
|
+
* Ensure the release tag makes it into the rhumsaa/uuid package
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
## 2.8.1 - 2015-06-16
|
|
1326
|
+
|
|
1327
|
+
### Fixed
|
|
1328
|
+
|
|
1329
|
+
* Use `passthru()` and output buffering in `getIfconfig()`
|
|
1330
|
+
* Cache the system node in a static variable so that we process it only once per
|
|
1331
|
+
runtime
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
## 2.8.0 - 2014-11-09
|
|
1335
|
+
|
|
1336
|
+
### Added
|
|
1337
|
+
|
|
1338
|
+
* Add static `fromInteger()` method to create UUIDs from string integer or
|
|
1339
|
+
`Moontoast\Math\BigNumber`
|
|
1340
|
+
|
|
1341
|
+
### Fixed
|
|
1342
|
+
|
|
1343
|
+
* Improve Doctrine conversion to Uuid or string for the ramsey/uuid [Doctrine field type]
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
## 2.7.4 - 2014-10-29
|
|
1347
|
+
|
|
1348
|
+
### Fixed
|
|
1349
|
+
|
|
1350
|
+
* Change loop in `generateBytes()` from `foreach` to `for`
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
## 2.7.3 - 2014-08-27
|
|
1354
|
+
|
|
1355
|
+
### Fixed
|
|
1356
|
+
|
|
1357
|
+
* Fix upper range for `mt_rand` used in version 4 UUIDs
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
## 2.7.2 - 2014-07-28
|
|
1361
|
+
|
|
1362
|
+
### Changed
|
|
1363
|
+
|
|
1364
|
+
* Upgrade to PSR-4 autoloading
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
## 2.7.1 - 2014-02-19
|
|
1368
|
+
|
|
1369
|
+
### Fixed
|
|
1370
|
+
|
|
1371
|
+
* Move moontoast/math and symfony/console to require-dev
|
|
1372
|
+
* Support symfony/console 2.3 (LTS version)
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
## 2.7.0 - 2014-01-31
|
|
1376
|
+
|
|
1377
|
+
### Added
|
|
1378
|
+
|
|
1379
|
+
* Add `Uuid::VALID_PATTERN` constant containing a UUID validation regex pattern
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
## 2.6.1 - 2014-01-27
|
|
1383
|
+
|
|
1384
|
+
### Fixed
|
|
1385
|
+
|
|
1386
|
+
* Fix bug where `uuid` console application could not find the Composer
|
|
1387
|
+
autoloader when installed in another project
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
## 2.6.0 - 2014-01-17
|
|
1391
|
+
|
|
1392
|
+
### Added
|
|
1393
|
+
|
|
1394
|
+
* Introduce `uuid` console application for generating and decoding UUIDs from
|
|
1395
|
+
CLI (run `./bin/uuid` for details)
|
|
1396
|
+
* Add `Uuid::getInteger()` to retrieve a `Moontoast\Math\BigNumber`
|
|
1397
|
+
representation of the 128-bit integer representing the UUID
|
|
1398
|
+
* Add `Uuid::getHex()` to retrieve the hexadecimal representation of the UUID
|
|
1399
|
+
* Use `netstat` on Linux to capture the node for a version 1 UUID
|
|
1400
|
+
* Require moontoast/math as part of the regular package requirements
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
## 2.5.0 - 2013-10-30
|
|
1404
|
+
|
|
1405
|
+
### Added
|
|
1406
|
+
|
|
1407
|
+
* Use `openssl_random_pseudo_bytes()`, if available, to generate random bytes
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
## 2.4.0 - 2013-07-29
|
|
1411
|
+
|
|
1412
|
+
### Added
|
|
1413
|
+
|
|
1414
|
+
* Return `null` from `Uuid::getVersion()` if the UUID isn't an RFC 4122 variant
|
|
1415
|
+
* Support string UUIDs without dashes passed to `Uuid::fromString()`
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
## 2.3.0 - 2013-07-16
|
|
1419
|
+
|
|
1420
|
+
### Added
|
|
1421
|
+
|
|
1422
|
+
* Support creation of UUIDs from bytes with `Uuid::fromBytes()`
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
## 2.2.0 - 2013-07-04
|
|
1426
|
+
|
|
1427
|
+
### Added
|
|
1428
|
+
|
|
1429
|
+
* Add `Doctrine\UuidType::requiresSQLCommentHint()` method
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
## 2.1.2 - 2013-07-03
|
|
1433
|
+
|
|
1434
|
+
### Fixed
|
|
1435
|
+
|
|
1436
|
+
* Fix cases where the system node was coming back with uppercase hexadecimal
|
|
1437
|
+
digits; this ensures that case in the node is converted to lowercase
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
## 2.1.1 - 2013-04-29
|
|
1441
|
+
|
|
1442
|
+
### Fixed
|
|
1443
|
+
|
|
1444
|
+
* Fix bug in `Uuid::isValid()` where the NIL UUID was not reported as valid
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
## 2.1.0 - 2013-04-15
|
|
1448
|
+
|
|
1449
|
+
### Added
|
|
1450
|
+
|
|
1451
|
+
* Allow checking the validity of a UUID through the `Uuid::isValid()` method
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
## 2.0.0 - 2013-02-11
|
|
1455
|
+
|
|
1456
|
+
### Added
|
|
1457
|
+
|
|
1458
|
+
* Support UUID generation on 32-bit platforms
|
|
1459
|
+
|
|
1460
|
+
### Changed
|
|
1461
|
+
|
|
1462
|
+
* Mark `Uuid` class `final`
|
|
1463
|
+
* Require moontoast/math on 64-bit platforms for
|
|
1464
|
+
`Uuid::getLeastSignificantBits()` and `Uuid::getMostSignificantBits()`; the
|
|
1465
|
+
integers returned by these methods are *unsigned* 64-bit integers and
|
|
1466
|
+
unsupported even on 64-bit builds of PHP
|
|
1467
|
+
* Move `UnsupportedOperationException` to the `Exception` subnamespace
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
## 1.1.2 - 2012-11-29
|
|
1471
|
+
|
|
1472
|
+
### Fixed
|
|
1473
|
+
|
|
1474
|
+
* Relax [Doctrine field type] conversion rules for UUIDs
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
## 1.1.1 - 2012-08-27
|
|
1478
|
+
|
|
1479
|
+
### Fixed
|
|
1480
|
+
|
|
1481
|
+
* Remove `final` keyword from `Uuid` class
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
## 1.1.0 - 2012-08-06
|
|
1485
|
+
|
|
1486
|
+
### Added
|
|
1487
|
+
|
|
1488
|
+
* Support ramsey/uuid UUIDs as a Doctrine Database Abstraction Layer (DBAL)
|
|
1489
|
+
field mapping type
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
## 1.0.0 - 2012-07-19
|
|
1493
|
+
|
|
1494
|
+
### Added
|
|
1495
|
+
|
|
1496
|
+
* Support generation of version 1, 3, 4, and 5 UUIDs
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
[comb sequential uuids]: http://www.informit.com/articles/article.aspx?p=25862&seqNum=7
|
|
1500
|
+
[paragonie/random_compat]: https://github.com/paragonie/random_compat
|
|
1501
|
+
[collision issue]: https://github.com/ramsey/uuid/issues/80
|
|
1502
|
+
[contributor code of conduct]: https://github.com/ramsey/uuid/blob/main/CODE_OF_CONDUCT.md
|
|
1503
|
+
[pecl libsodium extension]: http://pecl.php.net/package/libsodium
|
|
1504
|
+
[ircmaxell/random-lib]: https://github.com/ircmaxell/RandomLib
|
|
1505
|
+
[doctrine field type]: http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html
|
|
1506
|
+
[ramsey/uuid-doctrine]: https://github.com/ramsey/uuid-doctrine
|
|
1507
|
+
[ramsey/uuid-console]: https://github.com/ramsey/uuid-console
|
|
1508
|
+
[version6]: https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-00#section-5.6
|
|
1509
|
+
[version7]: https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-00#section-5.7
|
|
1510
|
+
[version8]: https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-00#section-5.8
|
|
1511
|
+
[max uuids]: https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-5.4
|