2017 © Pedro PelĂĄez
 

library jedi-faker

Faker extension for Star Wars junkie

image

hydreflab/jedi-faker

Faker extension for Star Wars junkie

  • Saturday, February 3, 2018
  • by golonix
  • Repository
  • 1 Watchers
  • 10 Stars
  • 28 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 9 Versions
  • 8 % Grown

The README.md



Faker extension for Star Wars junkie. , (*1)

Build Status, (*2)

Installation

composer require hydreflab/jedi-faker`

Basic usage

You can use data provided by this package in two ways: - use HydrefLab\JediFaker\Factory, - or manually add providers to Faker\Factory., (*3)

// use provided factory to create generator with already registered providers
$faker = HydrefLab\JediFaker\Factory::create();

// or use Faker factory and manually register new providers
$faker = Faker\Factory::create();
$faker->addProvider(new HydrefLab\JediFaker\Provider\Character($faker));
... // add other providers

$faker->darkSide;            // Darth Vader
$faker->quote;               // No. I am your father.
$faker->quote('han_solo');   // Never tell me the odds!
$faker->droid;               // R2-D2
$faker->episode;             // Episode VIII: The Last Jedi
...

Providers

Each of the providers contains one or more formatters. Right now, only default locale (en_US) is supported., (*4)

HydrefLab\JediFaker\Provider\Character

$faker->lightSide;      // Yoda
$faker->darkSide;       // Kylo Ren
$faker->character;      // Han Solo
$faker->quote;          // Now, young Skywalker, you will die.
$faker->quote('leia');  // Aren't you a little short for a storm trooper?

To get a list of available characters' quotes, please check the provider file., (*5)

HydrefLab\JediFaker\Provider\Droid

$faker->droid;  // C-3PO

HydrefLab\JediFaker\Provider\Movie

$faker->episode;                // Episode V: The Empire Strikes Back
$faker->episode(2);             // Episode II: Attack of the Clones
$faker->episodeOpeningCrawl;    // Turmoil has engulfed the\r\nGalactic Republic. The taxation\r\nof trade routes to outlying star\r\nsystems is in dispute.\r\n\r\nHoping to resolve the matter\r\nwith a blockade of deadly\r\nbattleships, the greedy Trade\r\nFederation has stopped all\r\nshipping to the small planet\r\nof Naboo.\r\n\r\nWhile the Congress of the\r\nRepublic endlessly debates\r\nthis alarming chain of events,\r\nthe Supreme Chancellor has\r\nsecretly dispatched two Jedi\r\nKnights, the guardians of\r\npeace and justice in the\r\ngalaxy, to settle the conflict....
$faker->episodeOpeningCrawl(4); // It is a period of civil war.\r\nRebel spaceships, striking\r\nfrom a hidden base, have won\r\ntheir first victory against\r\nthe evil Galactic Empire.\r\n\r\nDuring the battle, Rebel\r\nspies managed to steal secret\r\nplans to the Empire's\r\nultimate weapon, the DEATH\r\nSTAR, an armored space\r\nstation with enough power\r\nto destroy an entire planet.\r\n\r\nPursued by the Empire's\r\nsinister agents, Princess\r\nLeia races home aboard her\r\nstarship, custodian of the\r\nstolen plans that can save her\r\npeople and restore\r\nfreedom to the galaxy....

HydrefLab\JediFaker\Provider\Planet

$faker->planet;     // Tatooine

HydrefLab\JediFaker\Provider\Species

$faker->species;    // Wookiee

HydrefLab\JediFaker\Provider\Vehicle

$faker->vehicle;    // Millennium Falcon

HydrefLab\JediFaker\Provider\Squadron

$faker->squadron;       // Green
$faker->squadronName;   // Blue Squadron
$faker->pilot;          // Red Leader or Blue #7
$faker->pilotRank;      // Pilot

Contributing

Contributions are welcome! Please, read CONTRIBUTING for details., (*6)

Package is licensed for use under the MIT License (MIT). Please, see LICENSE for more information., (*7)

The Versions

03/02 2018

dev-master

9999999-dev

Faker extension for Star Wars junkie

  Sources   Download

MIT

The Requires

 

The Development Requires

by MichaƂ Golon

fixtures faker data faker-extension star-wars

03/02 2018

v1.4.0

1.4.0.0

Faker extension for Star Wars junkie

  Sources   Download

MIT

The Requires

 

The Development Requires

by MichaƂ Golon

fixtures faker data faker-extension star-wars

02/02 2018

1.4.x-dev

1.4.9999999.9999999-dev

Faker extension for Star Wars junkie

  Sources   Download

MIT

The Requires

 

The Development Requires

by MichaƂ Golon

fixtures faker data faker-extension star-wars

02/02 2018

dev-add-stuff-from-episode-iii

dev-add-stuff-from-episode-iii

Faker extension for Star Wars junkie

  Sources   Download

MIT

The Requires

 

The Development Requires

by MichaƂ Golon

fixtures faker data faker-extension star-wars

01/02 2018

dev-add-stuff-from-episode-ii

dev-add-stuff-from-episode-ii

Faker extension for Star Wars junkie

  Sources   Download

MIT

The Requires

 

The Development Requires

by MichaƂ Golon

fixtures faker data faker-extension star-wars

26/01 2018

v1.3.0

1.3.0.0

Faker extension for Star Wars junkie

  Sources   Download

MIT

The Requires

 

The Development Requires

by MichaƂ Golon

fixtures faker data faker-extension star-wars

23/01 2018

v1.2.0

1.2.0.0

Faker extension for Star Wars junkie

  Sources   Download

MIT

The Requires

 

The Development Requires

by MichaƂ Golon

fixtures faker data faker-extension star-wars

16/01 2018

v1.1.0

1.1.0.0

Faker extension for Star Wars junkie

  Sources   Download

MIT

The Requires

 

The Development Requires

by MichaƂ Golon

fixtures faker data faker-extension star-wars

14/01 2018

v1.0.0

1.0.0.0

Faker extension for Star Wars junkie

  Sources   Download

MIT

The Requires

 

The Development Requires

by MichaƂ Golon

fixtures faker data faker-extension star-wars