Download the PHP package kherge/uuid-bundle without Composer
On this page you can find all versions of the php package kherge/uuid-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package uuid-bundle
UUID Bundle
This bundle integrates ramsey/uuid
into Symfony 2 as services.
Usage
Installation
composer require kherge/uuid-bundle
Once Composer has downloaded the bundle and its dependencies, please
add the following line to where you believe it is appropriate in the
AppKernel
class (or your app's equivalent).
new KHerGe\Bundle\UuidBundle\KHerGeUuidBundle(),
Configuration
While no configuration is required, you may want to refer to the output
of app/console config:dump-reference kherge_uuid
to see a breakdown of
all available settings. Each setting is documented so that choosing the
right settings becomes a little simpler. You will be expected to know
how to use the ramsey/uuid
package to understand how the bundle's
settings will work with its classes.
Recommended Settings
This will allow you to generate secure UUIDs, but requires that you
have the moontoast/math
package and libsodium
extension installed.
You may want to change the random generator.
Doctrine
You can have Doctrine automatically generate new UUIDs for your new entities. Support is limited to only v1 and v4 UUIDs. To use the custom generators, you will need to use the following annotations for the ID field in your entity:
Replace the class name with the desired generator.
It is strongly recommended that you enable the use of a global factory. Not doing so will allow the UUID library to create and use its own UUID factory, independent of the factory service that was configured for Symfony.
Parameter Conversion
The bundle provides support for converting UUIDs in request parameters. To use
this feature, you must have the sensio/framework-extra-bundle
installed to
support parameter conversion.
All versions of uuid-bundle with dependencies
ramsey/uuid Version ^3.5
symfony/config Version ^2.8|^3.0
symfony/dependency-injection Version ^2.8|^3.0
symfony/http-kernel Version ^2.8|^3.0