2017 © Pedro Peláez
 

library laravel-uuid

A package for using 'Universally Unique Identifiers' in Laravel.

image

takeawaytown/laravel-uuid

A package for using 'Universally Unique Identifiers' in Laravel.

  • Wednesday, November 15, 2017
  • by takeawaytown
  • Repository
  • 2 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 4 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Build Status Maintainability Test Coverage, (*1)

Laravel UUID

A package for working with UUID values in Laravel., (*2)

You can use the package to generate and validate version 1, 3, 4 and 5 UUID identifiers., (*3)

Installation

To install, simply type the following at your bash prompt:, (*4)

composer require takeawaytown/laravel-uuid

The package automatically registers the Service Provider and Alias in Laravel 5.5 and above. If using Laravel <= 5.4, then you must manually add them., (*5)

For the Service Provider, add the following to your app config file:, (*6)

TakeawayTown\LaravelUuid\Providers\UuidServiceProvider::class,

For the Alias, add the following to your app config:, (*7)

'UUID' => TakeawayTown\LaravelUuid\Classes\Uuid::class,

Basic Usage

The most basic generator usage is:, (*8)

Uuid::generate();

This will generate a UUID object, which will be 'Version 1' and will use a random MAC address., (*9)

You can also generate a UUID string using type-hinting or using a method. Either of the following is exactly the same:, (*10)

(string) Uuid::generate();
Uuid::generate()->string;

The Versions

14/11 2017

0.0.5

0.0.5.0

A package for using 'Universally Unique Identifiers' in Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Scott

laravel uuid validator generator

14/11 2017

0.0.4

0.0.4.0

A package for using 'Universally Unique Identifiers' in Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Scott

laravel uuid validator generator

14/11 2017

0.0.3

0.0.3.0

A package for using 'Universally Unique Identifiers' in Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Scott

14/11 2017

0.0.2

0.0.2.0

A package for using 'Universally Unique Identifiers' in Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Scott

14/11 2017

0.0.1

0.0.1.0

A package for using 'Universally Unique Identifiers' in Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Scott