2017 © Pedro Peláez
 

library laravel-hashids

A Hashids service provider for Laravel

image

junityco/laravel-hashids

A Hashids service provider for Laravel

  • Friday, February 17, 2017
  • by Junity
  • Repository
  • 2 Watchers
  • 1 Stars
  • 1,420 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 8 % Grown

The README.md

Hashids for Laravel

Hashids is small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user: http://hashids.org/php, (*1)

Total Downloads Latest Version License, (*2)

Installation

Require this package, with Composer, in the root directory of your project., (*3)

$ composer require junityco/laravel-hashids

Add the service provider to config/app.php in the providers array., (*4)

Junity\Hashids\HashidsServiceProvider::class

If you want you can use the facade. Add the reference in config/app.php to your aliases array., (*5)

'Hashids' => Junity\Hashids\Facades\Hashids::class

Configuration

Laravel Hashids requires connection configuration. To get started, you'll need to publish all vendor assets:, (*6)

$ php artisan vendor:publish --provider="Junity\Hashids\HashidsServiceProvider"

This will create a config/hashids.php file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases., (*7)

Quick Example

use Junity\Hashids\Facades\Hashids;

$id = Hashids::encode(1, 2, 3); // o2fXhV
$numbers = Hashids::decode($id); // [1, 2, 3]

There are other methods in this package that are not documented here. For documentation visit the Hashids package homepage., (*8)

The Versions

17/02 2017

dev-master

9999999-dev http://hashids.org/php

A Hashids service provider for Laravel

  Sources   Download

MIT

The Requires

 

bitly hash encode decode youtube ids hashids obfuscate hashid

17/02 2017

1.5

1.5.0.0 http://hashids.org/php

A Hashids service provider for Laravel

  Sources   Download

MIT

The Requires

 

bitly hash encode decode youtube ids hashids obfuscate hashid

17/02 2017

1.4

1.4.0.0 http://hashids.org/php

A Hashids service provider for Laravel

  Sources   Download

MIT

The Requires

 

bitly hash encode decode youtube ids hashids obfuscate hashid

17/02 2017

1.3

1.3.0.0 http://hashids.org/php

A Hashids service provider for Laravel

  Sources   Download

MIT

The Requires

 

bitly hash encode decode youtube ids hashids obfuscate hashid

17/02 2017

1.2

1.2.0.0 http://hashids.org/php

A Hashids service provider for Laravel

  Sources   Download

MIT

The Requires

 

bitly hash encode decode youtube ids hashids obfuscate hashid

17/02 2017

1.1

1.1.0.0 http://hashids.org/php

A Hashids service provider for Laravel

  Sources   Download

MIT

The Requires

 

bitly hash encode decode youtube ids hashids obfuscate hashid

17/02 2017

1.0

1.0.0.0 http://hashids.org/php

A Hashids service provider for Laravel

  Sources   Download

MIT

The Requires

 

bitly hash encode decode youtube ids hashids obfuscate hashid