PHP code example of geekish / faker-horse-battery-staple
1. Go to this page and download the library: Download geekish/faker-horse-battery-staple 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/ */
geekish / faker-horse-battery-staple example snippets
php
use Faker\Factory;
use Geekish\FakerHorseBatteryStaple\BatteryStapleProvider;
$faker = Factory::create();
$faker->addProvider(new BatteryStapleProvider($faker));
// no delimiter - e.g. correcthorsebatterystaple
echo $faker->correctHorseBatteryStaple;
// with "." as delimiter - e.g. correct.horse.battery.staple
echo $faker->correctHorseBatteryStaple('.');