All Projects → HydrefLab → jedi-faker

HydrefLab / jedi-faker

Licence: MIT license
Faker extension for Star Wars junkie

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to jedi-faker

mkjson
A commandline tool to generate static or random JSON records
Stars: ✭ 16 (+6.67%)
Mutual labels:  faker, faker-generator
fake-web-events
Creates a Simulation of Fake Web Events
Stars: ✭ 48 (+220%)
Mutual labels:  faker, faker-generator
faker
A set of javascript packages that generates fake data for you.
Stars: ✭ 33 (+120%)
Mutual labels:  faker, faker-generator
blaver
A JavaScript library built on top of the Faker.JS library. It generates massive amounts of fake data in the browser and node.js.
Stars: ✭ 112 (+646.67%)
Mutual labels:  faker, faker-generator
fastfaker
Fast, concurrent fake data generator for any structure or type.
Stars: ✭ 21 (+40%)
Mutual labels:  faker, faker-generator
Faker.js
generate massive amounts of realistic fake data in Node.js and the browser
Stars: ✭ 34,329 (+228760%)
Mutual labels:  faker, faker-generator
anakin-language-server
Yet another Jedi Python language server
Stars: ✭ 27 (+80%)
Mutual labels:  jedi
dark-mode-example
Simple and fun dark-mode detection. JavaScript with a user mode toggle.
Stars: ✭ 27 (+80%)
Mutual labels:  star-wars
dummy
Run mock server based off an API contract with one command
Stars: ✭ 170 (+1033.33%)
Mutual labels:  faker
Starwars.ios
This component implements transition animation to crumble view-controller into tiny pieces.
Stars: ✭ 3,685 (+24466.67%)
Mutual labels:  star-wars
FakerDotNet
A .NET port of the Ruby faker gem
Stars: ✭ 15 (+0%)
Mutual labels:  faker
python-tools
🔧 Atom plugin which uses jedi to provide numerous tools useful for developing python code in atom.
Stars: ✭ 96 (+540%)
Mutual labels:  jedi
faker-cs
C# port of the Ruby Faker gem (http://faker.rubyforge.org/)
Stars: ✭ 159 (+960%)
Mutual labels:  faker-generator
jRand
A Java library to generate random data for all sorts of things. Java random data faker
Stars: ✭ 27 (+80%)
Mutual labels:  faker
fake-numbers
Generate fake, valid numbers. Check if a number is valid. Support a lot of different numbers: Credit card, EAN, ISBN, RTN, VIN, etc.
Stars: ✭ 51 (+240%)
Mutual labels:  faker
CRC-manipulator
Change CRC checksums of your files.
Stars: ✭ 73 (+386.67%)
Mutual labels:  faker
faker
Random fake data and struct generator for Go.
Stars: ✭ 67 (+346.67%)
Mutual labels:  faker
Openjk
Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
Stars: ✭ 1,641 (+10840%)
Mutual labels:  star-wars
TheVimIDE
Modern Vim IDE with support for C/C++, Java, Python, Lua, PHP, JavaScript, Ruby and much more ...
Stars: ✭ 33 (+120%)
Mutual labels:  jedi
Paw-FakerDynamicValue
A dynamic value extension for Paw using Faker to generate data
Stars: ✭ 16 (+6.67%)
Mutual labels:  faker



Faker extension for Star Wars junkie.

Build Status

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.
// 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.

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.

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.

Copyright and license

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].