PHP code example of nblackburn / laravel-hashids

1. Go to this page and download the library: Download nblackburn/laravel-hashids library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nblackburn / laravel-hashids example snippets


LaravelHashids\Providers\LaravelServiceProvider::class

'Parsedown' => LaravelParsedown\Facades\Parsedown::class,

$app->register(LaravelHashids\Providers\LumenServiceProvider::class);

// $app->withFacades();

$app->register(LaravelHashids\Facades\Hashids::class);

app('hashids')->encode(...$integers);

Hashids::encode(...$integers);

app('hashids')->decode($encoded);

Hashids::decode($encoded);
bash
php artisan config:publish nblackburn/laravel-hashids