PHP code example of iamraccoon / car-faker
1. Go to this page and download the library: Download iamraccoon/car-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/ */
iamraccoon / car-faker example snippets
$faker = (new \Faker\Factory())::create();
$faker->addProvider(new \carfaker\provider\Car($faker));
// generate automobile manufacturer and model of car
echo $faker->car; //Mercedes-Benz CLC 220
// generate only automobile manufacturer
echo $faker->brand; //Lotus