Package Data | |
---|---|
Maintainer Username: | nathanmac |
Maintainer Contact: | nathan.macnamara@arrowecs.co.uk (nathanmac) |
Package Create Date: | 2014-03-28 |
Package Last Update: | 2016-01-14 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-29 15:01:07 |
Package Statistics | |
---|---|
Total Downloads: | 5,516 |
Monthly Downloads: | 4 |
Daily Downloads: | 0 |
Total Stars: | 10 |
Total Watchers: | 3 |
Total Forks: | 2 |
Total Open Issues: | 2 |
Simple GUID generator Package for Laravel 4
Begin by installing this package through Composer. Edit your project's composer.json
file to require Nathanmac/laravel-guid
.
"require": {
"nathanmac/laravel-guid": "dev-master"
}
Next, update Composer from the Terminal:
composer update
Once this operation completes, the final step is to add the service provider. Open app/config/app.php
, and add a new item to the providers array.
'Nathanmac\GUID\GUIDServiceProvider'
echo "GUID: " . GUID::generate(); // GUID: 582B5733-8AE1-79D2-DB8F-5720ECBE4306
echo "GUID: " . GUID::generate('custom salt value'); // GUID: 582B5733-8AE1-79D2-DB8F-5720ECBE4306
echo "GUID: " . GUID::generate(false, true); // GUID: {582B5733-8AE1-79D2-DB8F-5720ECBE4306}