j20 / php-uuid
Generate a UUID v4 with PHP.
Installs: 66 825
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 3
Forks: 4
Open Issues: 0
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2018-03-17 07:40:48 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 j20/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
License
MIT