nikitakiselev/faker-yandex-referat-provider

There is no license information available for the latest version (dev-master) of this package.

dev-master 2018-08-31 18:14 UTC

This package is not auto-updated.

Last update: 2024-05-20 05:44:03 UTC


README

Installation

composer require nikitakiselev/faker-yandex-referat-provider dev-master
$faker = new \Faker\Factory::create();
$faker->addProvider(new \Nikitakiselev\YandexReferatProvider($faker));
var_dump($faker->essay());

You can use one of the predefined theme:

const THEME_ASTRONOMY = 'astronomy';
const THEME_GEOLOGY = 'geology';
const THEME_GYROSCOPE = 'gyroscope';
const THEME_LITERATURE = 'literature';
const THEME_MARKETING = 'marketing';
const THEME_MATHEMATICS = 'mathematics';
const THEME_MUSIC = 'music';
const THEME_POLIT = 'polit';
const THEME_AGROBIOLOGIA = 'agrobiologia';
const THEME_PSYCHOLOGY = 'psychology';
const THEME_GEOGRAPHY = 'geography';
const THEME_PHYSICS = 'physics';
const THEME_PHILOSOPHY = 'philosophy';
const THEME_CHEMISTRY = 'chemistry';
const THEME_ESTETICA = 'estetica';
use Nikitakiselev\YandexReferatProvider;

$faker->essay(YandexReferatProvider::THEME::POLIT);