Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 22 | All time: 11,287 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
Files (8) |
File | Role | Description | ||
---|---|---|---|---|
src (2 directories) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files (8) | / | src | / | LaravelTinyID |
File | Role | Description | ||
---|---|---|---|---|
Facades (1 file) | ||||
TinyIDFactory.php | Class | Class source | ||
TinyIDManager.php | Class | Class source | ||
TinyIDServiceProvider.php | 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. |
Install with Composer |
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.