octacondeveloper/naija-faker

一个PHP库,用于生成用于项目中的假数据。为尼日利亚开发者提供的Fzaninotto的faker的本地版本,提供他们能够相关联的快速数据。

0.01 2020-08-07 23:17 UTC

This package is auto-updated.

Last update: 2024-09-08 09:56:05 UTC


README

一个PHP库,用于生成用于项目中的假数据。这是Fzaninotto的faker的本地版本,为尼日利亚开发者提供他们能够相关联的快速数据。它生成与尼日利亚相关的随机数据。

安装

composer require octacondeveloper/naija-faker
require_once 'vendor/autoload.php';
use NaijaFaker\Generator;
$faker = new Generator();

参数

$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可以创建并会被接受。谢谢