2017 © Pedro Peláez
 

library laravel-guid

Simple GUID generator Package for Laravel 4

image

nathanmac/laravel-guid

Simple GUID generator Package for Laravel 4

  • Thursday, January 14, 2016
  • by nathanmac
  • Repository
  • 2 Watchers
  • 9 Stars
  • 3,427 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

laravel-guid

Build Status Still Maintained, (*1)

Simple GUID generator Package for Laravel 4, (*2)

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require Nathanmac/laravel-guid., (*3)

"require": {
    "nathanmac/laravel-guid": "dev-master"
}

Next, update Composer from the Terminal:, (*4)

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., (*5)

'Nathanmac\GUID\GUIDServiceProvider'
Generate GUID
echo "GUID: " . GUID::generate(); // GUID: 582B5733-8AE1-79D2-DB8F-5720ECBE4306
Generate GUID with a salt value
echo "GUID: " . GUID::generate('custom salt value'); // GUID: 582B5733-8AE1-79D2-DB8F-5720ECBE4306
Generate GUID with braces
echo "GUID: " . GUID::generate(false, true); // GUID: {582B5733-8AE1-79D2-DB8F-5720ECBE4306}

The Versions

14/01 2016

dev-master

9999999-dev

Simple GUID generator Package for Laravel 4

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar nathanmac