mbezhanov/laravel-faker-provider-collection
Larablocks Analysis
mbezhanov/laravel-faker-provider-collection works with Laravel 10, 11 and 12 (latest release 3.2.0, Mar 21, 2025).
Laravel 5 to 9 in earlier releases.
Recommendation checks
Use with careUse with care: meets 0 of 4 checks.
- Latest release doesn't support Laravel 13, the current version
- No release in the last 12 months (last: Mar 21, 2025)
- 340 downloads a month (needs 10,000)
- 21 GitHub stars (needs 100)
State
Quiet- Last stable release: Mar 21, 2025.
- No releases in the last 12 months.
- First released: Oct 4, 2018.
- Monthly downloads: 340.
- 2 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 29, 2026.
| Install | |
|---|---|
composer require mbezhanov/laravel-faker-provider-collection |
|
| Latest Version: | 3.2.0 |
| PHP: | ^8.1 |
| Laravel: | 10 · 11 · 12 |
| Older releases: | 5 – 9 |
| License: | MIT |
| Last Updated: | Mar 21, 2025 |
| Links: | GitHub · Packagist |
laravel-faker-provider-collection
This package contains a Service Provider that automatically registers the faker-provider-collection library with your Laravel application.
Detailed information about the various Faker providers exposed by faker-provider-collection can be found here.
Quickstart
Add the provider to your Laravel project with Composer:
composer require --dev mbezhanov/laravel-faker-provider-collection
Add the FakerServiceProvider class to your ./bootstrap/providers.php file:
return [
// other provider definitions
Bezhanov\Faker\Laravel\FakerServiceProvider::class,
];
At this point, you should be able to use the all the additional faker providers bundled with the library in your Model Factories
In example, assuming you have defined the following model factory:
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class StudentFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'university' => fake()->university,
'sport' => fake()->sport,
'team' => fake()->team,
];
}
}
You should be able to do:
/app # php artisan tinker
Psy Shell v0.12.2 (PHP 8.3.4 — cli) by Justin Hileman
> \App\Student::factory(5)->make();
= Illuminate\Database\Eloquent\Collection {#6008
all: [
App\Models\Student {#6065
university: "Ironston Technical College",
sport: "baseball",
team: "Minnesota Warlocks",
},
App\Models\Student {#5980
university: "Mallowpond TAFE",
sport: "hockey",
team: "New York Oracles",
},
App\Models\Student {#6066
university: "Vertapple College",
sport: "rugby",
team: "Delaware Bees",
},
App\Models\Student {#6069
university: "Falconholt University",
sport: "lacrosse",
team: "West Virginia Vixens",
},
App\Models\Student {#6046
university: "Flowerlake College",
sport: "basketball",
team: "Louisiana Spiders",
},
],
}
> exit
INFO Goodbye.
/app #
Related Packages
With this package, you can easily generate Chilean names, addresses, phone numbe...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 3.2.0 | ^8.1 | ^10.0| | MIT | |
| 3.1.0 | ^8.1 | ^10.0| | MIT | |
| 3.0.2 | ^8.1 | ^10.0 | MIT | |
| 3.0.1 | ^8.1 | ^10.0 | MIT | |
| 3.0.0 | ^8.1 | ^10.0 | MIT | |
| 2.2.0 | ^5.1| | MIT | ||
| 2.1.0 | ^5.1| | MIT | ||
| 2.0.0 | ^5.1| | MIT | ||
| 1.2.0 | ^5.1| | MIT | ||
| 1.1.0 | ^5.1| | MIT | ||
| 1.0.0 | ^5.1 | MIT |