So I\'ve been doing some digging around and I\'ve been trying to piece together a function that generates a valid v4 UUID in PHP. This is the closest I\'ve been able to come
How about using mysql to generate the uuid for you?
$conn = new mysqli($servername, $username, $password, $dbname, $port); $query = 'SELECT UUID()'; echo $conn->query($query)->fetch_row()[0];