PHP code example of faaizz / pin_generator

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

    

faaizz / pin_generator example snippets



...
'providers' => [
    ...
    Faaizz\PinGenerator\PinGeneratorServiceProvider::class
],
...

use Faaizz\PinGenerator\Facades\Generator;
...
$pin = Generator::generatePin();

// config/config.php
return [
    'digits' => 10
    ...
];

// config/config.php
return [
    ...
    'obvious_numbers' => [
        0000, 1111, 2222, 3333, 4444, 5555, 6666, 7777,
        8888, 9999, 1234, 5678, 1010, 2020
    ]
];
bash
php artisan migrate
shell
php artisan vendor:publish --provider="Faaizz\PinGenerator\PinGeneratorServiceProvider" --tag="config"