PHP code example of flashytime / id-generator

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

    

flashytime / id-generator example snippets


$idGenerator = new \Flashytime\ApcIdGenerator\IdGenerator($config);
$idGenerator->setTable('id_generator');
$id = $idGenerator->getId('test_name');

'providers' => [

	Flashytime\IdGenerator\Provider\LaravelIdGeneratorServiceProvider::class,

]

$app->register(Flashytime\IdGenerator\Provider\LumenIdGeneratorServiceProvider::class);

$app->configure('id-generator');

app('id-generator')->setTable('id_generator');
$id = app('id-generator')->getId('test_name');