Download the PHP package kodegrenade/naija-faker-laravel without Composer
On this page you can find all versions of the php package kodegrenade/naija-faker-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kodegrenade/naija-faker-laravel
More information about kodegrenade/naija-faker-laravel
Files in kodegrenade/naija-faker-laravel
Package naija-faker-laravel
Short Description A Laravel faker library to generate typical Nigeria fake data ranging from name, address, phone number, LGAs and states for you. It supports Yoruba, Igbo, and Hausa ethnic groups with culturally authentic data.
License MIT
Informations about the package naija-faker-laravel
Laravel NaijaFaker
Introduction ๐
A comprehensive package that generates fake, culturally authentic Nigerian data โ names, addresses, phone numbers, bank accounts, universities, companies, and much more. Supports three major ethnic groups: Yoruba, Igbo, and Hausa.
NB: Nigeria as a country has so many languages.
Yoruba,IgboandHausaare the only languages supported at the moment.
Installation
Install via composer
Add service provider to the config/app.php file
Add alias to the config/app.php file
Usage ๐งจ
NOTE All methods return associative arrays or strings.
Seeded / Deterministic Mode
Set a seed for reproducible output (useful for testing):
Configuration
Set default language, gender, or network:
Person
Generate fake person data.
Sample
People
Generate multiple fake people.
Name
Generate a fake name.
Title
Generate a fake Nigerian title.
Email Address
Generate a fake email address.
Address
Generate a fake Nigerian address.
Phone Number
Generate a fake Nigerian phone number.
NOTE: Supported networks are
mtn,glo,9mobile&airtel
States & LGAs
Identity & Financial
BVN (Bank Verification Number)
NIN (National Identification Number)
Bank Account
Geographic Consistency
Generate persons where name ethnicity, state, and LGA all match geographically.
Consistent Person
Consistent People
Records
License Plate
Company
University
Education Record
Work Record
Vehicle Record
Personal Data
Date of Birth
Marital Status
Blood Group & Genotype
Salary
Next of Kin
Detailed Person
Generate a complete identity with person, personal data, education, work, and vehicle all in one call:
Export
Export generated data as JSON or CSV:
CSV output uses dot notation for nested fields (e.g., education.university, salary.amount).
Custom Providers
Register your own data generators:
NOTE: Custom providers cannot override built-in methods.
Quick Usage
You can give the package a quick spin by running the following artisan command:
Tests
Disclaimer :warning:
See DISCLAIMER for details.
Contribution
Please feel free to fork the package and contribute by submitting a pull request to enhance the functionalities.
License
Naija Faker is release under the MIT License. See LICENSE for details.
Feedback
If you have any feedback, please reach out to me at [email protected]