Download the PHP package piotrgradzinski/uuid-extra-bundle without Composer
On this page you can find all versions of the php package piotrgradzinski/uuid-extra-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download piotrgradzinski/uuid-extra-bundle
More information about piotrgradzinski/uuid-extra-bundle
Files in piotrgradzinski/uuid-extra-bundle
Package uuid-extra-bundle
Short Description Paramconverter, Normalizer and Form Type for Ramsey Uuid
License MIT
Homepage https://github.com/piotrgradzinski/uuid-extra-bundle
Informations about the package uuid-extra-bundle
Uuid Extra Bundle
A convenient bundle for using ramsey/uuid in your project
Disclaimer
This repository is a fork of ekreative/uuid-extra-bundle with some updates as the original project is not updated for some time now.
Install
Composer
AppKernel
Include the bundle in your AppKernel
Config
No config needed
Param Converter
Use just like any other param converter
Most of the time its going to work automatically, as long as you use type hinting on your action
Also works for optional params
Serializer
Also like a normalizer should
Results in "f13a5b20-9741-4b15-8120-138009d8e0c7"
And the other way around
Results in $uuid
Works in your Objects etc.
Form Type
Does everything you'd expect
And if your model has
It will automatically use the UuidType
All versions of uuid-extra-bundle with dependencies
symfony/framework-bundle Version ^6.2
sensio/framework-extra-bundle Version ^6.2
ramsey/uuid Version ^4.2.3