PHPackages                             wenbinye/faker-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wenbinye/faker-template

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wenbinye/faker-template
=======================

0554PHPCI failing

Since Aug 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wenbinye/faker-template)[ Packagist](https://packagist.org/packages/wenbinye/faker-template)[ RSS](/packages/wenbinye-faker-template/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Generate data use php template
==============================

[](#generate-data-use-php-template)

Quick start
-----------

[](#quick-start)

```
composer install
cd examples
../bin/faker-template owner
../bin/faker-template owner -r 10 -o result/owner.json
../bin/faker-template pet_type -r inf -o result/pet_type.json
../bin/faker-template pet -r 10 -o result/pet.json
../bin/faker-template visit -r 10 -o result/visit.json
```

Template
--------

[](#template)

Template is a simple php file that return an array :

```
