PHPackages                             hydreflab/jedi-faker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hydreflab/jedi-faker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hydreflab/jedi-faker
====================

Faker extension for Star Wars junkie

v1.4.0(8y ago)1429.5k↑16.7%3[1 issues](https://github.com/HydrefLab/jedi-faker/issues)1MITPHPPHP &gt;=7.0

Since Jan 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/HydrefLab/jedi-faker)[ Packagist](https://packagist.org/packages/hydreflab/jedi-faker)[ RSS](/packages/hydreflab-jedi-faker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

 [![](https://user-images.githubusercontent.com/9950778/34909614-eab4956c-f8a4-11e7-974e-067cd19f6803.png)](https://user-images.githubusercontent.com/9950778/34909614-eab4956c-f8a4-11e7-974e-067cd19f6803.png)

 [Faker](https://github.com/fzaninotto/Faker) extension for Star Wars junkie.

[![Build Status](https://camo.githubusercontent.com/a53ded1737e0ce27144bb9adf8a141afd0a72aee0663667c4941dd52c2c47636/68747470733a2f2f7472617669732d63692e6f72672f4879647265664c61622f6a6564692d66616b65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/HydrefLab/jedi-faker)

Installation
------------

[](#installation)

```
composer require hydreflab/jedi-faker`
```

Basic usage
-----------

[](#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
---------

[](#providers)

Each of the providers contains one or more formatters. Right now, only default locale (en\_US) is supported.

### `HydrefLab\JediFaker\Provider\Character`

[](#hydreflabjedifakerprovidercharacter)

```
$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`

[](#hydreflabjedifakerproviderdroid)

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

```

### `HydrefLab\JediFaker\Provider\Movie`

[](#hydreflabjedifakerprovidermovie)

```
$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`

[](#hydreflabjedifakerproviderplanet)

```
$faker->planet;     // Tatooine

```

### `HydrefLab\JediFaker\Provider\Species`

[](#hydreflabjedifakerproviderspecies)

```
$faker->species;    // Wookiee

```

### `HydrefLab\JediFaker\Provider\Vehicle`

[](#hydreflabjedifakerprovidervehicle)

```
$faker->vehicle;    // Millennium Falcon

```

### `HydrefLab\JediFaker\Provider\Squadron`

[](#hydreflabjedifakerprovidersquadron)

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

```

Contributing
------------

[](#contributing)

Contributions are welcome! Please, read [CONTRIBUTING](https://github.com/hydreflab/jedi-faker/blob/master/CONTRIBUTING.md) for details.

Copyright and license
---------------------

[](#copyright-and-license)

Package is licensed for use under the MIT License (MIT). Please, see [LICENSE](https://github.com/hydreflab/jedi-faker/blob/master/LICENSE) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

5

Last Release

3026d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.1

v1.1.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bb2ae00cd837b7401dbf87896a68199303dade9ffc301cd0dc6674802aa8c9d?d=identicon)[golonix](/maintainers/golonix)

---

Top Contributors

[![golonix](https://avatars.githubusercontent.com/u/9950778?v=4)](https://github.com/golonix "golonix (69 commits)")

---

Tags

fakerfaker-extensionsfaker-generatorfaker-providerjediphpphp71star-warsfakerfixturesdatafaker-extensionstar-wars

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hydreflab-jedi-faker/health.svg)

```
[![Health](https://phpackages.com/badges/hydreflab-jedi-faker/health.svg)](https://phpackages.com/packages/hydreflab-jedi-faker)
```

###  Alternatives

[fakerphp/faker

Faker is a PHP library that generates fake data for you.

4.0k358.5M3.5k](/packages/fakerphp-faker)[mbezhanov/faker-provider-collection

A collection of custom providers for the Faker library

2138.6M24](/packages/mbezhanov-faker-provider-collection)[bheller/images-generator

Generator of placeholder images for Faker

573.1M3](/packages/bheller-images-generator)[xefi/faker-php

Faker allows you to generate realistic fake data for your php applications

15116.5k15](/packages/xefi-faker-php)[andrefigueira/blog-article-faker

Generate random blog article titles and content (including markdown) using faker

1415.0k](/packages/andrefigueira-blog-article-faker)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
