{"id":19525483,"url":"https://github.com/james-n-m/faker-pokemon","last_synced_at":"2025-10-14T06:07:48.079Z","repository":{"id":56996133,"uuid":"209683307","full_name":"James-N-M/faker-pokemon","owner":"James-N-M","description":"A Faker provider that generates fake pokemon data for you! :candy:","archived":false,"fork":false,"pushed_at":"2020-02-15T15:54:22.000Z","size":38,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-19T04:45:50.474Z","etag":null,"topics":["faker-provider","laravel","php","pokemon"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/james-n-m/faker-pokemon","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/James-N-M.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-20T01:55:25.000Z","updated_at":"2023-07-29T14:24:35.000Z","dependencies_parsed_at":"2022-08-21T14:10:10.658Z","dependency_job_id":null,"html_url":"https://github.com/James-N-M/faker-pokemon","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/James-N-M/faker-pokemon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/James-N-M%2Ffaker-pokemon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/James-N-M%2Ffaker-pokemon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/James-N-M%2Ffaker-pokemon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/James-N-M%2Ffaker-pokemon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/James-N-M","download_url":"https://codeload.github.com/James-N-M/faker-pokemon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/James-N-M%2Ffaker-pokemon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018120,"owners_count":26086280,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-provider","laravel","php","pokemon"],"created_at":"2024-11-11T01:04:46.916Z","updated_at":"2025-10-14T06:07:48.049Z","avatar_url":"https://github.com/James-N-M.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg height=\"234\" width=\"300\" src=\"https://user-images.githubusercontent.com/6562688/65653705-3074a880-dfe4-11e9-8cfe-d2c62112587e.jpg\" /\u003e\n    \u003cbr /\u003e\u003cbr /\u003e\n    \u003ca href=\"https://github.com/fzaninotto/Faker\" target=\"_blank\"\u003eFaker\u003c/a\u003e extension for Pokemon Fans.\n\u003c/p\u003e\n\n## Installation\n\n```php\ncomposer require james-n-m/faker-pokemon\n```\n\n## Basic usage\n\n### Laravel Factory\n```php\n\n$factory-\u003edefine(UserPokemon::class, function (Faker $faker) {\n\n    $faker-\u003eaddProvider(new \\Faker\\Provider\\FakerPokemon($faker));\n\n    return [\n        ...\n    ];\n\n$faker-\u003epokemonName;            // Pikachu\n$faker-\u003epokemonCharacterName;   // Ash Ketchum\n$faker-\u003epokemonType;            // Fire\n$faker-\u003epokemonLocation;        // Pallet Town\n$faker-\u003epokemonMove;            // Quick Attack\n$faker-\u003epokemonQuote('oak')     // Your very own tale of grand adventure is about to unfold\n$faker-\u003epokeball()              // Safari Ball\n$faker-\u003eitem()                  // Rare Candy\n$faker-\u003ekeyItem()               // Pokedex \n\n```\n\nTo then use this factory within a seeder file. First, create a seeder file:\n\n```\nphp artisan make:seeder PokemonTableSeeder\n```\n\nOpen the seeder file and add the following. Use the factory that we created above for the `App\\UserPokemon` model:\n\n```php\n\u003c?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass PokemonTableSeeder extends Seeder\n{\n    public $create_count = 5;\n    \n    public function run()\n    {\n        factory(App\\UserPokemon::class, $this-\u003ecreate_count)-\u003ecreate();\n    }\n}\n```\n\nFinally, run the seeder:\n\n```\nphp artisan db:seed --class=PokemonTableSeeder\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames-n-m%2Ffaker-pokemon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames-n-m%2Ffaker-pokemon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames-n-m%2Ffaker-pokemon/lists"}