mohammadsalmani28/faker
Composer 安装命令:
composer require mohammadsalmani28/faker
包简介
Persian faker is a package for laravel to make dummy data
README 文档
README
My faker is a package for laravel. This package created for making fake data in your project. please dont use it for create spam. thanks for using my package!
Installation
Step 1
Run following command in root directory of your project:
composer require mohammadsalmani28/faker
Step 2 : Add Provider
Now you have to add this line in 'app.php' located in 'config' directory of your laravel project in the providers array:
Mohammadsalmani28\Faker\FakerServiceProvider::class,
Step 3 : Add Aliases
Now you have to add this line in 'app.php' located in 'config' directory of your laravel project in the aliases array:
'Faker' => Mohammadsalmani28\Faker\Facades\Faker::class,
Done :)
Usage:
| Code | Description |
|---|---|
Faker::Name() |
Return an object with properties |
Faker::Name()->firstName |
Return a random firstname |
Faker::Name()->lastName |
Return a random lastname |
Faker::Name()->full |
Return a random fullname |
Faker::Name()->gender |
Return a gender of firstname |
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.alefbyte.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::ip() |
Return a random ip address |
Faker::carModel() |
Return a random car Model |
Faker::insurance() |
Return a random Insurance company |
Faker::avatar() |
Return a random avatar URL from Gravatar |
License
The MIT License (MIT). Please see License File for more information.
mohammadsalmani28/faker 适用场景与选型建议
mohammadsalmani28/faker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 91 次下载、GitHub Stars 达 8, 最近一次更新时间为 2019 年 11 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「php」 「faker」 「data」 「laravel」 「dummy data」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mohammadsalmani28/faker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mohammadsalmani28/faker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mohammadsalmani28/faker 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony bundle to manage fixtures with Alice and Faker.
Additional plugin for fakerphp/faker that allows you to generate a random animal
Faker Japanese is a Faker provider that generates fake Japanese related data for you.
A model factory package for Laravel 4 with expressive API for creating custom tailored dummy objects
Faker Provider for Russian Shop - product titles, models, materials,units,sizes, categories, attributes, trademarks
Utility to generate CNPJ (Brazilian Business Tax ID)
统计信息
- 总下载量: 91
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-13