1. Go to this page and download the library: Download lava83/laravel-sqid 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/ */
use Lava83\LaravelSqid\Facades\LaravelSqid;
// Encode an array or a Collection of integers
LaravelSqid::encode([1, 2, 3]); // "86Rf07"
LaravelSqid::encode(collect([1, 2, 3])); // "86Rf07"
// Decode back into a Collection<int>
LaravelSqid::decode('86Rf07'); // collect([1, 2, 3])