michalsn / codeigniter4-uuid

UUID package for CodeIgniter 4 with support for Model and Entity.
MIT License
41 stars 9 forks source link

UUID Helper #8

Closed Lea-Reif closed 2 years ago

Lea-Reif commented 2 years ago

Is there any function in order to check if an string|binary variable is an uuid?

Lea-Reif commented 2 years ago

After an exhaustive 5-minute investigation, I realized that the UUID base class has a function to check validity. I leave it here in case you need it.

\Ramsey\Uuid\Uuid::isValid($value)