定制 ybazli/faker 二次开发

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

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

ybazli/faker

最新稳定版本:v1.0.1

Composer 安装命令:

composer require ybazli/faker

包简介

Persian fake data package for laravel

README 文档

README

Persian faker package for laravel . This package is created for testing your project with fake data not for create spam. please do not use it to create spam. New options are comming soon. Enjoy it, thanks.

Installation

Step 1

get install package with composer

composer require ybazli/faker

Step 2

Next add this line in your 'config/app.php' in the providers array:

Ybazli\Faker\FakerServiceProvider::class,

Step 3

Next add this line in your 'config/app.php' in the aliases array:

'Faker' => Ybazli\Faker\Facades\Faker::class,

Done :)

Code Description
Faker::firstName() Return a random firstname
Faker::lastName() Return a random lastname
Faker::fullName() Return a random fullname
Faker::company() Return a random company name
Faker::mobile() Return a random mobile number
Faker::telephone() Return a random telephone number
Faker::email() Return a random email address
Faker::domain() Return a random domain like: https://www.blablabla.ir
Faker::age($min,$max) Return a random you can use $min and $max but thery are nullable
Faker::birthday($sign) Return a random birthday date use $sign for replace '/' between year/mounth/day
Faker::address() Return a random postal address
Faker::city() Return a random city of iran name
Faker::state() Return a random state of iran name
Faker::melliCode() Return a random 10 integer
Faker::word() Return a random word
Faker::sentence() Return a random sentence
Faker::paragraph() Return a random paragraph
Faker::productCategory() Return a random product category for use online shops
Faker::jobTitle() return a random job title
Faker::price() Return a random IRR

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 37.71k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 72
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 71
  • Watchers: 2
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固