PHP code example of royalcms / hashids

1. Go to this page and download the library: Download royalcms/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/ */

    

royalcms / hashids example snippets


'RC_Hashids' => 'Royalcms\Component\Hashids\Facades\Hashids',

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

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

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

RC_Hashids::decode($encoded);