octacondeveloper / laravel-naija-faker
这是一个Laravel包,用于生成用户在项目中使用的假数据。为尼日利亚开发者提供的Fzaninotto的faker本地版本,方便他们快速获取相关数据。
0.1
2020-08-08 23:05 UTC
This package is auto-updated.
Last update: 2024-09-09 15:01:19 UTC
README
为了Laravel的爱,这是NaijaFaker的Laravel版本
安装
composer require octacondeveloper/laravel-naija-faker
use OctaconDeveloper\LaravelNaijaFaker\Creator;
$faker = new Creator();
使用方法
$creator->landLine();
or
Creator::landLine();
参数
$network = ['MTN','AIRTEL','GLO','ETISALAT','STARCOMMS', 'VISAFONE']
$zone = ['SW','SS','SE','NE','NC', 'NW']
$tribe = ['Igbo','Yoruba','Hausa']
电话号码
phoneNumber($network = 'null') // 081185642346
landLine($state = 'Lagos')); // (01) 5406290
州
state($zone = 'null') // Sokoto
stateFull($zone = null) // Zamfara (NG-ZA)
地方政府区域
//list of local governments in a state
lgas($state = null) // ["Aiyedade","Aiyedire","Atakumosa East","Atakumosa West","Boluwaduro","Boripe","Ede North","Ede South","Egbedore","Ejigbo","Ife Central","Ife East","Ife North","Ife South","Ifedayo","Ifelodun","Ila","Ilesha East","Ilesha West","Irepodun","Irewole","Isokan","Iwo","Obokun","Odo-Otin","Ola- Oluwa","Olorunda","Oriade","Orolu","Oshogbo"]
randomLga($state = null) // Kanam
randomZoneLga($zone = null) //Bende
人物
firstName($tribe=null) // Anuoru
lastName($tribe=null) // Kauna
maleName($tribe=null) // Sulaimanu
femaleName($tribe='Igbo') // Ihuomachukwu
fullName($tribe=null) // Mailafia Lafiya
nameAbbr($tribe=null) // R. A. Hankali
许可证
Released under the MIT License. See the bundled LICENSE file for details.
贡献
欢迎任何人贡献,PR可以提交,将被接受。谢谢