PHP code example of deseretdigital / cxense-encoders

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

    

deseretdigital / cxense-encoders example snippets




$encoder = new CxenseEncoders\MongoIdEncoder();

$encodedId = $encoder->encode('555cba723287777ccc0041b2');
$decodedId = $encoder->decode($encodedId);