juanpablom / php-uuid
Generate a UUID v4 with PHP.
Installs: 48
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/juanpablom/php-uuid
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-10-09 06:08:50 UTC
README
Generate a UUID v4 (psuedo random) using PHP.
Installation:
Using a command line interface, change into the root directory of your project and then run the following command to install the package via Composer:
composer require juanpablom/php-uuid:dev-master
If using the Laravel framework, open app/config/app.php and add the following within your 'aliases' array:
'Uuid' => 'J20\Uuid\Uuid',
Usage:
Uuid::v4(); // E.g. 5c01e9be-008f-45eb-811a-639df3c56f7d Uuid::v4(false); // E.g. 5c01e9be008f45eb811a639df3c56f7d