定制 matriphe/manekin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

matriphe/manekin

Composer 安装命令:

composer require matriphe/manekin

包简介

Faker extender specific for Indonesian data.

README 文档

README

Build Status

Manekin is Faker extender specific for Indonesian data. It generate fake data specific for Indonesia only.

Installation

Using composer, run this command.

composer require matriphe/manekin

Laravel 5 Integration

Open config/app.php and add this line in providers section.

Matriphe\Manekin\ManekinServiceProvider::class,

Now your model factory should load Manekin.

Laravel 5.5 Package Auto Discovery

This package supports Laravel 5.5 package auto discovery feature. You don't need to manually add in the config/app.php.

Lumen Integration

Open bootstrap/app.php and add this line in Register Service Providers section.

$app->register(Matriphe\Manekin\ManekinServiceProvider::class);

Usage

Manekin's methods are same with Faker's methods. It just extending the methods.

Specific Formatters

Matriphe\Manekin\Providers\Address

Return coordinates in Indonesia territory.

latitude($min = -10.1718, $max = 5.88969)     // -6.21462
longitude($min = 95.31644, $max = 140.71813)  // 106.84513
localCoordinates()                            // array('latitude' => -6.21462, 'longitude' => 106.84513)

Matriphe\Manekin\Providers\DateTime

Return birth date.

birthDate($minAge = 13, $maxAge = 100, $timezone = null)    // DateTime('1984-03-22 20:38:00', 'Asia/Jakarta')

Matriphe\Manekin\Providers\Device

Return IMEI, IMSI, ICCID, and Android Device ID.

imei()                  // 8658507594263070
imsi()                  // 510079932515821
iccid()                 // 8962097349284530254C
androidDeviceId()       // 3A73C5C7FB3629D1

Matriphe\Manekin\Providers\Identity

Return NIK (Nomor Induk Kependudukan), SIM (Surat Izin Mengemudi), and Passport number.

nik($gender = null)     // 3313402203841234
sim()                   // 849322123456
passport()              // A1234567

Matriphe\Manekin\Providers\Miscellaneous

Return random alpha numeric.

randomAlphaNumeric($length = null)     // QS9F8JAR25SF

Matriphe\Manekin\Providers\PhoneNumber

Return mobile phone numbers that recognized by Indonesian providers (Telkomsel, Indosat Ooredoo, XL Axiata, Axis, Tri, and Smartfren).

mobilePhoneNumber()         // 0896 0411 6056
e164MobilePhoneNumber()     // +6289604116056

Matriphe\Manekin\Providers\Vehicle

Return police number information.

policeNumber()         // AD 6742 XY
specialPoliceNumber()  // RI 1

License

Manekin is released under the MIT Licence.

统计信息

  • 总下载量: 380
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固