Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 21 | | All time: 11,012 This week: 159 |
|
Description | | Author Kacper Rowi?ski
Contributor
|
This package provides a Laravel service to generate opaque identifiers.
It provides a service based on the Laravel framework that can take as parameter a given string that could be a URL for instance, and generates an identifier of short length to map the original string using the Tiny ID package.
The package Laravel service can also take a given tiny identifier generated by the Tiny ID package and returns the original long string value. | |
 |
|
Innovation award
 Nominee: 8x |
|
Details
laravel-tinyid
A TinyID bridge for Laravel
Installation
Require this package, with Composer, in the root directory of your project.
$ composer require krowinski/laravel-tinyid
If you want you can use the facade. Add the reference in config/app.php
to your aliases array.
'TinyID' => LaravelTinyID\Facades\TinyID::class
Configuration
Laravel TinyID requires connection configuration. To get started, you'll need to publish all vendor assets:
$ php artisan vendor:publish
This will create a config/tinyID.php
Examples
var_dump(TinyId::encode('48888851145')); // will print 1FN7Ab
var_dump(TinyId::decode('1FN7Ab')); // will print 48888851145
|
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.