Allow fakerphp/faker to generate fake Solar data.
Add the FakerSOlar library to your composer.json file:
composer require nystronsolar/faker-solarTo use this with Faker, you must add the NystronSolar\FakerSolar\Solar class to the Faker generator:
<?php
$faker = \Faker\Factory::create();
$faker->addProvider(new \NystronSolar\FakerSolar\Solar($faker));
// Generator
$faker->solarInverterModel(); // A random Solar Inverter Modelgit clone https://github.com/NystronSolar/FakerSolar.git
composer installAfter you did the changes, run the PHP CS Fixer, Psalm and PHPUnit.
php vendor/bin/php-cs-fixer fix --verbose
php vendor/bin/psalm
php vendor/bin/phpunit