2017 © Pedro Peláez
 

class uuid

UUID v3, v4, v5 generator class

image

elcodedocle/uuid

UUID v3, v4, v5 generator class

  • Monday, February 19, 2018
  • by elcodedocle
  • Repository
  • 1 Watchers
  • 1 Stars
  • 277 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

UUID class

Universal Unique Identifier v3, v4 and v5 generator

Copyright: The PHP Documentation Group
License: Creative Commons Attribution 3.0 License, (*1)

How to use

use info\synapp\tools\uuid\UUID;

require_once 'vendor/elcodedocle/uuid/uuid.php';

//Named-based UUID:
$v3uuid = UUID::v3(UUID::v4(), 'BlahBlahSomeRandomStringBlergBlorg');
$v5uuid = UUID::v5(UUID::v4(), 'BlahBlahSomeRandomStringBlergBlorg');

//Pseudo-random UUID:
$v4uuid = UUID::v4();

echo 'UUIDv3: '.$v3uuid."\n".'UUIDv4: '.$v4uuid."\n".'UUIDv5: '.$v5uuid."\n";

Motivation

I needed a UUID generator I could import as a dependency on my projects, so I took the one from the PHP manual, added a composer.json and this README.md and uploaded it to this repo., (*2)

Acks

Enjoy!, (*6)

The Versions

19/02 2018

dev-master

9999999-dev https://github.com/elcodedocle/uuid

UUID v3, v4, v5 generator class

  Sources   Download

MIT Creative Commons Attribution 3.0 License

The Requires

  • php >=5.3.0

 

uuid universal unique identifier uuidv3 uuidv4 uuidv5

19/02 2018

1.0.0

1.0.0.0 https://github.com/elcodedocle/uuid

UUID v3, v4, v5 generator class

  Sources   Download

MIT Creative Commons Attribution 3.0 License

The Requires

  • php >=5.3.0

 

uuid universal unique identifier uuidv3 uuidv4 uuidv5