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
Requires
- php: 7.*
- ext-mbstring: *
- fzaninotto/faker: ^1.8
This package is not auto-updated.
Last update: 2025-02-10 08:55:56 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);