PHP Classes
elePHPant
Icontem

Laravel Tiny ID: Laravel service to generate opaque identifiers

Recommend this page to a friend!

  Author Author  
Name: Kacper Rowinski <contact>
Classes: 11 packages by
Country: Poland Poland
Innovation award
Innovation award
Nominee: 4x


  Detailed description   Download Download .zip .tar.gz  
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.

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

  Classes of Kacper Rowinski  >  Laravel Tiny ID  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  

 

Name: Laravel Tiny ID
Base name: laravel-tinyid
Description: Laravel service to generate opaque identifiers
Version: -
PHP version: 5
License: MIT/X Consortium License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes
Group folder image Libraries Frameworks and libraries of cooperating classes View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  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

Download Download all files: laravel-tinyid.tar.gz laravel-tinyid.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.