Skip to content

Instantly share code, notes, and snippets.

@rolandfarkasCOM
Created April 1, 2023 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolandfarkasCOM/e450c8fd0693e3d8918cc42faa16af5d to your computer and use it in GitHub Desktop.
Save rolandfarkasCOM/e450c8fd0693e3d8918cc42faa16af5d to your computer and use it in GitHub Desktop.
A class to return UUID on UNIX systems in php
class UUID {
public static function new() {
return file_get_contents('/proc/sys/kernel/random/uuid');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment