framework
framework copied to clipboard
Add UUID component
Is your feature request related to a problem? Please describe.
I'm not sure we have to provide this component by dafault on our Zest framework.
Describe the solution you'd like
We can look at the ramsey/uuid to know more details about UUID.
And this official uniqid function reference can also let us know UUID.
Yes i was thinking before, its should be part of Zest Framework, its good if you could send PR
what do you think @peter279k
Thanks @Lablnet, and I also have the similar issue on this :).
I have following approach in my mind
- Generate random characters 10 or 15 by using
saltsmethod fromSiteclass. - Generating random number from
100000to1000000and then multiply by ittime(). - Then concatenate those and shuffle it.
- For providing additional sticky rule we can make optional feature allow user to validate it, like when ever it generate UUID we can append it to json, and verify it either already exist or not if so, do it again.... but this will be optional
What do you think @peter279k