nystronsolar/faker-solar

Allow Faker to generate fake Solar data.

1.0.0 2023-09-06 22:32 UTC

This package is auto-updated.

Last update: 2024-09-07 01:02:58 UTC


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