alu/faker-providers

为fzaninotto/Faker库提供的一组自定义提供者

dev-master 2020-05-06 22:28 UTC

This package is auto-updated.

Last update: 2024-09-07 08:14:55 UTC


README

Continuous Integration codecov

为fzaninotto/Faker PHP库提供的一组自定义提供者。fzaninotto/Faker 是一个PHP库,可以为您生成假数据。

Faker Providers 需要 PHP >= 7.1.0

安装

安装使用composer完成

composer require alu/faker-providers

使用方法

<?php

$faker = \Faker\Factory::create();
$faker->addProvider(new \Alu\Faker\Provider\MonkeyIsland($faker));


echo $faker->name;     // Name of a character from the Monkey Island franchise.
echo $faker->location; // Name of a location from the Monkey Island franchise.

许可证

在MIT许可证下发布。有关详细信息,请参阅LICENSE文件。