Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对齐 README.md 中的 $faker 方法的返回注释 #4

Open
supgeek-rod opened this issue Jul 20, 2022 · 0 comments
Open

对齐 README.md 中的 $faker 方法的返回注释 #4

supgeek-rod opened this issue Jul 20, 2022 · 0 comments

Comments

@supgeek-rod
Copy link
Owner

RT

faker-zh/README.md

Lines 31 to 44 in a8e7a0b

### SupGeekRod\FakerZh\Provider\zh_CN\Lorem
```php
$faker->word(); // '难已'
$faker->words($nb = 3, $asText = false); // array('知变', '长放', '每该')
$faker->sentence($nbWords = 6, $variableNbWords = true); // '维外山石难比取管什战划设本天边子。'
$faker->sentences($nb = 3, $asText = false); // array('装几路而政全小放品候小她那度志。', '生规和包儿单于共知间利门育第革养或。', '利关外林百风意政斯规三称张般所且片且铁意还照名说头光。')
$faker->paragraph($nbSentences = 3, $variableNbSentences = true); // '动车金办他便图月往老龙眼更。资发传主包油我时一育气物着龙。自集何花调实市位使造金种。'
$faker->paragraphs($nb = 3, $asText = false); // array('任将品量比向提团易成采资约。调你东队该都或业至流选认亲资种划具任领。土百写清专影热部道命生铁值石数间向他而声现党。业实识位政之以器问开速样际理这始方思。', '得权自效支调件易色技着。调定京按老定际因式证装常山看有立但她决部工受年。把基理少已给立。海矿不器已众写张速经能必正活到十。', '领分命切型名西单元给术争然值。发手示路到化光导中该被算眼同直们处厂先日好反。任它称角往半连各便何属际。干话专济程该群维资儿设集例油如。')
$faker->text($maxNbChars = 200); // '及品深者查眼样住务认农产清部经领队边然全么才克。金导动断数场来完题引战提北公通代则三影小消。证又是三运亲海经交标我间表直应水素行。压当南还高具总斯支过能商石是儿理特义那命体。易层张间离术决这做深后量许放及导克向方的县各。验金作组织类意选代门选圆书矿高算学么通。史小很以多门再快领新白记很。道今统物三就发信定确六半。'
```

faker-zh/README.md

Lines 46 to 60 in a8e7a0b

### Faker\Provider\zh_CN\Person
```php
$faker->title($gender = null|'male'|'female'); // 老师
$faker->name($gender = null|'male'|'female'); // 谷桂芝
$faker->lastName(); // 稽
$faker->firstName($gender = null|'male'|'female'); // 玉华
$faker->titleMale(); // 老师
$faker->firstNameMale(); // 博
$faker->titleFemale(); // 小组
$faker->firstNameFemale(); // 瑶
```

faker-zh/README.md

Lines 62 to 78 in a8e7a0b

### Faker\Provider\zh_CN\Address
```php
$faker->country(); // 苏丹
$faker->stateAbbr(); // 甘
$faker->state(); // 吉林省
$faker->city(); // 昆明
$faker->area(); // 兴山区
$faker->address(); // 天津高明区; TODO: 需要优化 => (state + city + area + streetAddress)
$faker->streetName(); // 廉 Street; TODO: 需要优化
$faker->streetAddress(); // 91 邹 Street; TODO: 需要优化
$faker->postcode(); // 444700
$faker->latitude($min = -90, $max = 90); // 77.147489
$faker->longitude($min = -180, $max = 180); // 86.211205
```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant