PHP code example of carry0987 / cony

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

    

carry0987 / cony example snippets




use carry0987\Cony\Cony;

echo Cony::toNumeric('test'); // 4544743
echo '<br />';
echo Cony::toAlphanumeric(4544743); // test

Cony::toAlphanumeric(4540899, 3); // test
Cony::toNumeric('test', 3); // 4540899

Cony::toAlphanumeric(11282993, 3, 'heuh2ui12'); // test
Cony::toNumeric('test', 3, 'heuh2ui12'); // 11282993

Cony::toAlphanumeric(21663528, 0, null, Cony::TRANSFORM_UPPERCASE); // B2TFK
Cony::toAlphanumeric(21663528, 0, null, Cony::TRANSFORM_LOWERCASE); // b2tfk