nystronsolar / faker-solar
Allow Faker to generate fake Solar data.
1.0.0
2023-09-06 22:32 UTC
Requires
- fakerphp/faker: ^1.23
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.25
- phpunit/phpunit: ^10.3
- symfony/var-dumper: ^6.3
- vimeo/psalm: ^5.15
README
Allow fakerphp/faker to generate fake Solar data.
Installation
Add the FakerSOlar library to your composer.json
file:
composer require nystronsolar/faker-solar
Usage
To 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 Model
Contributing
git clone https://github.com/NystronSolar/FakerSolar.git composer install
After 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