PHP code example of alexeyyashin / seed-faker
1. Go to this page and download the library: Download alexeyyashin/seed-faker 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/ */
alexeyyashin / seed-faker example snippets
use AlexeyYashin\SeedFaker\SeedFaker;
$faker = new SeedFaker();
// Generate a random integer
$randomInteger = $faker->integer(1, 100);
echo "Random Integer: $randomInteger\n";
// Generate a random sentence
$randomSentence = $faker->sentence();
echo "Random Sentence: $randomSentence\n";