Simple PHP uuid generator

When working in a company project, I found a need of an uuid generator. Poorly, there's no simple option for that, I prefer the implementation in Drupal 8, so I started split it out from Drupal 8 code base: uuid

The usage must be simple:

Type hint is also available for your service:

Tags: