xylis/faker-besson-scenario-provider

Generate random scenario that could be written by Luc Besson (with Audi cars, cabs and hookers)

v2.0.0 2023-05-02 23:13 UTC

This package is auto-updated.

Last update: 2024-05-03 01:10:42 UTC


README

Provider for creating fake scenarios

Faker Cinema

Packagist Travis Build Status

A growing collection of useful Providers for fzaninotto/faker mostly ported to PHP from the stympy/faker Ruby library.

Contents

  1. Installation
  2. Available Formatters
  3. Contributing

Installation

composer require xylis/faker-besson-scenario-provider

Formatters

Below is the list of bundled formatters in the default locale.

Xylis\FakerCinema\Provider\BessonScenario

<?php

$faker = \Faker\Factory::create();
$faker->addProvider(new \Xylis\FakerCinema\Provider\BessonScenario($faker));

$faker->scenario; // Un Dauphin tueur à gages fait une poursuite en Taxi avec des roumains
$faker->basicScenario; // Nikita pète la gueule à des chinois déguisés en Père Noel en banlieue

$faker->scenarios(2); // array
$faker->basicScenarios(2); // array

Contributing

All contributions are welcome. Before opening PRs, make sure that all tests are passing, and that code coverage is satisfactory:

.\vendor\bin\phpunit