redpandacoding / fakealfred
FakeAlfred is a PHP library that will generate fake data for you. Utilizing fzaninotto/faker and knpuniversity/lorem-ipsum-bundle
v0.1.0
2018-05-11 02:04 UTC
Requires
- php: ^7.1.3
- fzaninotto/faker: ^1.7
Requires (Dev)
- phpunit/phpunit: ^7.1
This package is auto-updated.
Last update: 2024-11-09 03:39:08 UTC
README
Dry Bulk Material names generated using fzaninotto/Faker
Installation
Add FakeAlfred library to your composer.json
file:
composer require redpandacoding/fakealfred
Usage
To use this with Faker, you must add the Fake\Alfred\Provider\Material
class to the Faker generator:
<?php $faker = \Faker\Factory::create(); $faker->addProvider(new \Fake\Alfred\Provider\Material($faker)); // Generator $faker->materialName(); // A random Material Name