PHP code example of bulldog / id
1. Go to this page and download the library: Download bulldog/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/ */
bulldog / id example snippets
ulldog\id\ObjectId;
$id = new ObjectId;
for($i=0; $i<5000; $i++) {
var_dump($id->get(12));
}
ulldog\id\IncrementalId;
$id = new IncrementalId;
var_dump($id->create(4, 'dog', 9));
// Output: NAZG9nOQ
var_dump($id->get(4));
// Output: NAZG