PHP code example of as3 / short-mongo-id
1. Go to this page and download the library: Download as3/short-mongo-id 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/ */
as3 / short-mongo-id example snippets
use As3\ShortMongoId\Shortener;
$shortener = new Shortener();
$shortId = $shortener->shorten('507f191e810c19729de860ea'); // returns "iTxuMF"