承接 mrgoodbytes8667/faker-providers 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mrgoodbytes8667/faker-providers

最新稳定版本:v0.6.2

Composer 安装命令:

composer require mrgoodbytes8667/faker-providers

包简介

A Faker Factory, Generator, and some providers

README 文档

README

Packagist Version PHP from Packagist Symfony Versions Supported Symfony LTS Version Symfony Stable Version Symfony Dev Version Packagist License GitHub Release Workflow Status GitHub Tests Workflow Status GitHub Coverage Workflow Status codecov
A Faker Factory, Generator, and some providers

Installation

Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.

Open a command console, enter your project directory and execute:

$ composer require mrgoodbytes8667/faker-providers

Usage

use Bytes\Common\Faker\Factory;

$faker = Factory::create();

$faker->camelWords();
$faker->snakeWords();
$faker->oneOrMoreOf(['some', 'iterable', 'object']);
$faker->rangeBetween(4, 1, 2);
$faker->randomAlphanumericString();
$faker->paragraphsMinimumChars();

The included replacement Factory removes the now deprecated Faker image provider and replaces it with the mmo/faker-images provider, and adds other included providers by default. It returns an overloaded Generator for code completion purposes as well.

With PHPUnit

See test-common-faker for easy PHPUnit test integration

With Zenstruck/Foundry

Add the following to Kernel.php to replace the default Faker Generator with this one, adding in these providers

    public function process(ContainerBuilder $container): void
    {
        $container->getDefinition('.zenstruck_foundry.faker')->setFactory([\Bytes\Common\Faker\Factory::class, 'create']);
    }

License

License
Faker Providers by MrGoodBytes is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Based on a work at https://github.com/mrgoodbytes8667/faker-providers.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: CC-BY-NC-4.0
  • 更新时间: 2024-08-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固