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

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