xakepehok/array-to-uuid-helper

This library can convert array to uuid string

0.1.0 2024-01-29 11:27 UTC

This package is not auto-updated.

Last update: 2024-10-22 13:38:57 UTC


README

Installation

composer require xakepehok/array-to-uuid-helper

Usage

<?php
$data = [
    "hello" => "world",
    "nested" => [
        "value_1" => 1,
        "value_2" => 2,
    ],
];


// Print "13e6457d-e400-4ca3-86d0-c50624604a02"
echo \XAKEPEHOK\ArrayToUuidHelper\ArrayToUuidHelper::generate($fields);