sukohi/celebrity-faker
Larablocks Analysis
sukohi/celebrity-faker works with Laravel 5 (latest release 1.0.0, Jun 9, 2017), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Jun 9, 2017)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jun 9, 2017.
- No releases in the last 12 months.
- First released: Jun 9, 2017.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.
| Install | |
|---|---|
composer require sukohi/celebrity-faker |
|
| Latest Version: | 1.0.0 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Jun 9, 2017 |
| Links: | GitHub · Packagist |
CelebrityFaker
A Laravel package to generate fake data using celebrity data.
Installation
Execute the next command.
composer require sukohi/CelebrityFaker:1.*
Set the service providers in app.php
'providers' => [
...Others...,
Sukohi\CelebrityFaker\CelebrityFakerServiceProvider::class,
]
Also alias
'aliases' => [
...Others...,
'CelebrityFaker' => Sukohi\CelebrityFaker\Facades\CelebrityFaker::class,
]
Then execute the next commands.
php artisan vendor:publish
Config
After run the above command you should have a config file called celebrity_faker.php in your config folder.
You can set csv file path(s) there.
About CSV file
CSV files need to have key in first line like so.
| name | birthday | gender_id | ...
Usage
for($i = 0; $i < 100; $i++){
// Get celebrity randomly
$celebrity = \CelebrityFaker::getCelebrity();
// Each
echo $celebrity->name;
echo $celebrity->name_kana;
echo $celebrity->gender_id;
echo $celebrity->height;
echo $celebrity->weight;
echo $celebrity->blood_type;
echo $celebrity->prefecture;
echo $celebrity->company;
// Array
print_r($celebrity->toArray());
}
License
This package is licensed under the MIT License.
Copyright 2017 Sukohi Kuhoh
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| 1.0.0 | ~5.0 | MIT |