| Last Updated |  | Ratings |  | Unique User Downloads |  | Download Rankings | 
| 2024-12-13 (3 months ago)  |  | Not enough user ratings |  | Total: 13 This week: 1 |  | All time:  11,461 This week: 42  | 
|  | 
| Description |  | Author | 
| This package can encode and decode UUIDs with a prefix and a number.
 It provides a tool that can be executed from the command line console to encode and decode UUID values.
 
 The tool can take a prefix string and an integer and output a UUID value generated by a package class.
 
 It can also take a UUID value generated by the same package class and parse it to extract the prefix string and the integer number.
 |  | 
|  |  | Innovation award 
  Nominee: 17x
 
 Winner: 1x
 | 
 
 | 
Example
| 
<?php
 use Symfony\Component\Console\Application;
 use Teamleader\Uuidifier\Command\Encode;
 
 require_once __DIR__ . '/../vendor/autoload.php';
 
 $application = new Application();
 $application->add(new Encode());
 
 $application->run();
 
 | 
Details
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
|  | Applications that use this package |  | 
No pages of applications that use this class were specified.
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.