PHP code example of bit3 / faker-cli

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

    

bit3 / faker-cli example snippets


$ ./bin/faker.php --format xml word

<?xml version="1.0"

$ ./bin/faker.php --format php word

array (
  0 => 'culpa',
  1 => 'consequatur',
  2 => 'quisquam',
  3 => 'recusandae',
  4 => 'asperiores',
  5 => 'accusamus',
  6 => 'nihil',
  7 => 'repellat',
  8 => 'vero',
  9 => 'omnis',
)
bash
$ curl -LSs https://box-project.github.io/box2/installer.php | php
$ ./box.phar build