Skip to content

Embed incremental ids inside special uuids

License

Notifications You must be signed in to change notification settings

teamleadercrm/uuidifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embed incremental ids inside special uuids.

Installation

Install using composer:

composer require teamleadercrm/uuidifier

Console command

To do some quick encoding, we have a console command:

php bin/console uuidifier:encode {prefix} {id}

e.g.

php bin/console uuidifier:encode InvoiceId 1

will give you

Id 1 with prefix InvoiceId encodes as ac42e979-4cf9-0f3c-8616-6ff689592c91