{"id":15025748,"url":"https://github.com/hydreflab/jedi-faker","last_synced_at":"2025-04-09T20:04:24.013Z","repository":{"id":56987433,"uuid":"116863608","full_name":"HydrefLab/jedi-faker","owner":"HydrefLab","description":"Faker extension for Star Wars junkie","archived":false,"fork":false,"pushed_at":"2018-02-03T20:09:50.000Z","size":55,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T20:04:18.804Z","etag":null,"topics":["faker","faker-extensions","faker-generator","faker-provider","jedi","php","php71","star-wars"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HydrefLab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-09T19:53:06.000Z","updated_at":"2025-02-16T04:23:19.000Z","dependencies_parsed_at":"2022-08-21T09:40:27.981Z","dependency_job_id":null,"html_url":"https://github.com/HydrefLab/jedi-faker","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydrefLab%2Fjedi-faker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydrefLab%2Fjedi-faker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydrefLab%2Fjedi-faker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HydrefLab%2Fjedi-faker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HydrefLab","download_url":"https://codeload.github.com/HydrefLab/jedi-faker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["faker","faker-extensions","faker-generator","faker-provider","jedi","php","php71","star-wars"],"created_at":"2024-09-24T20:02:57.546Z","updated_at":"2025-04-09T20:04:23.991Z","avatar_url":"https://github.com/HydrefLab.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/9950778/34909614-eab4956c-f8a4-11e7-974e-067cd19f6803.png\" /\u003e\n    \u003cbr /\u003e\u003cbr /\u003e\n    \u003ca href=\"https://github.com/fzaninotto/Faker\" target=\"_blank\"\u003eFaker\u003c/a\u003e extension for Star Wars junkie.\n\u003c/p\u003e\n\n[![Build Status](https://travis-ci.org/HydrefLab/jedi-faker.svg?branch=master)](https://travis-ci.org/HydrefLab/jedi-faker)\n\n## Installation\n\n```sh\ncomposer require hydreflab/jedi-faker`\n```\n\n## Basic usage\n\nYou can use data provided by this package in two ways:\n- use `HydrefLab\\JediFaker\\Factory`,\n- or manually add providers to `Faker\\Factory`.\n\n```php\n// use provided factory to create generator with already registered providers\n$faker = HydrefLab\\JediFaker\\Factory::create();\n\n// or use Faker factory and manually register new providers\n$faker = Faker\\Factory::create();\n$faker-\u003eaddProvider(new HydrefLab\\JediFaker\\Provider\\Character($faker));\n... // add other providers\n\n$faker-\u003edarkSide;            // Darth Vader\n$faker-\u003equote;               // No. I am your father.\n$faker-\u003equote('han_solo');   // Never tell me the odds!\n$faker-\u003edroid;               // R2-D2\n$faker-\u003eepisode;             // Episode VIII: The Last Jedi\n...\n```\n\n## Providers\n\nEach of the providers contains one or more formatters. Right now, only default locale (en_US) is supported.\n\n### `HydrefLab\\JediFaker\\Provider\\Character`\n```\n$faker-\u003elightSide;      // Yoda\n$faker-\u003edarkSide;       // Kylo Ren\n$faker-\u003echaracter;      // Han Solo\n$faker-\u003equote;          // Now, young Skywalker, you will die.\n$faker-\u003equote('leia');  // Aren't you a little short for a storm trooper?\n```\nTo get a list of available characters' quotes, please check the provider file.\n\n### `HydrefLab\\JediFaker\\Provider\\Droid`\n```\n$faker-\u003edroid;  // C-3PO\n```\n\n### `HydrefLab\\JediFaker\\Provider\\Movie`\n```\n$faker-\u003eepisode;                // Episode V: The Empire Strikes Back\n$faker-\u003eepisode(2);             // Episode II: Attack of the Clones\n$faker-\u003eepisodeOpeningCrawl;    // 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....\n$faker-\u003eepisodeOpeningCrawl(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....\n```\n\n### `HydrefLab\\JediFaker\\Provider\\Planet`\n```\n$faker-\u003eplanet;     // Tatooine\n```\n\n### `HydrefLab\\JediFaker\\Provider\\Species`\n```\n$faker-\u003especies;    // Wookiee\n```\n\n### `HydrefLab\\JediFaker\\Provider\\Vehicle`\n```\n$faker-\u003evehicle;    // Millennium Falcon\n```\n\n### `HydrefLab\\JediFaker\\Provider\\Squadron`\n```\n$faker-\u003esquadron;       // Green\n$faker-\u003esquadronName;   // Blue Squadron\n$faker-\u003epilot;          // Red Leader or Blue #7\n$faker-\u003epilotRank;      // Pilot\n```\n\n## Contributing\n\nContributions are welcome! Please, read [CONTRIBUTING][] for details.\n\n## Copyright and license\n\nPackage is licensed for use under the MIT License (MIT). Please, see [LICENSE][] for more information.\n\n[contributing]: https://github.com/hydreflab/jedi-faker/blob/master/CONTRIBUTING.md\n[license]: https://github.com/hydreflab/jedi-faker/blob/master/LICENSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhydreflab%2Fjedi-faker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhydreflab%2Fjedi-faker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhydreflab%2Fjedi-faker/lists"}