Skip to content

NystronSolar/FakerSolar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faker Solar

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

About

Allow Faker to generate fake Solar data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages