| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 22 | All time: 11,306 This week: 455 | ||||
| Version | License | PHP version | Categories | |||
| laravel-tinyid 1.0.0 | MIT/X Consortium ... | 5 | PHP 5, Text processing, Libraries |
| Description | Author | |
This package provides a Laravel service to generate opaque identifiers. |
A TinyID bridge for Laravel
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
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
var_dump(TinyId::encode('48888851145')); // will print 1FN7Ab
var_dump(TinyId::decode('1FN7Ab')); // will print 48888851145
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Doc. | Documentation | |||
| / | src | / | LaravelTinyID |
| File | Role | Description | ||
|---|---|---|---|---|
| |
Class | Class source | ||
| |
Class | Class source | ||
| |
Class | Class source | ||
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.