solspace / craft-express-forms

Express Forms for Craft: Intuitive and lightweight form builder that gets the job done but doesn’t get in your way.
https://docs.solspace.com/craft/express-forms/v2/
Other
13 stars 4 forks source link

Remove `ramsey/uuid` dependency #74

Closed khalwat closed 3 years ago

khalwat commented 3 years ago

Probably you don't need the ramsey/uuid dependency at all, and can just remove the package. This is a good thing in terms of reducing dependencies to avoid situations like this:

https://github.com/percipioglobal/craft-notifications/issues/66

You can just leverage the built-in UUID generator that Craft CMS has built in:

https://github.com/craftcms/cms/blob/develop/src/helpers/StringHelper.php#L1874

It's been available since Craft CMS 3.0.0

gustavs-gutmanis commented 3 years ago

Thanks @khalwat!

I'll implement your suggestion shortly.