PHP Classes
elePHPant
Icontem

Laravel Tiny ID: Laravel service to generate opaque identifiers

Recommend this page to a friend!
  Info   View files Documentation   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-08-23 (24 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 14 All time: 9,690 This week: 154Up
Version License PHP version Categories
laravel-tinyid 1.0MIT/X Consortium ...5PHP 5, Text processing, Libraries
Description Author

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.

  Performance   Level  
Name: Kacper Rowinski <contact>
Classes: 11 packages by
Country: Poland Poland
Age: 35
All time rank: 106528 in Poland Poland
Week rank: 10 Up1 in Poland Poland Up
Innovation award
Innovation award
Nominee: 5x

 

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
  Files folder image Files  
File Role Description
Files folder imagesrc (2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageconfig (1 file)
Files folder imageLaravelTinyID (3 files, 1 directory)

  Files folder image Files  /  src  /  config  
File Role Description
  Accessible without login Plain text file tinyID.php Conf. Configuration script

  Files folder image Files  /  src  /  LaravelTinyID  
File Role Description
Files folder imageFacades (1 file)
  Plain text file TinyIDFactory.php Class Class source
  Plain text file TinyIDManager.php Class Class source
  Plain text file TinyIDServiceProvider.php Class Class source

  Files folder image Files  /  src  /  LaravelTinyID  /  Facades  
File Role Description
  Plain text file TinyID.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:14
This week:0
All time:9,690
This week:154Up