PHP code example of amandiobm / faker-pis-provider

1. Go to this page and download the library: Download amandiobm/faker-pis-provider 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/ */

    

amandiobm / faker-pis-provider example snippets


$faker = Faker\Factory::create();
$faker->addProvider(new AmandioMagalhaes\Faker\PisProvider($faker));

// PIS
$pis = $faker->pis(); // 57182789660
$formattedPis = $faker->pis(true); // 571.82789.66-0