danielspinard / wordlist-consumer
一个智能的消费者,能够消费单词列表并返回几乎真实的对象
2.0.0
2021-05-23 08:07 UTC
Requires
- php: >=7.4
- ext-json: *
Requires (Dev)
- symfony/error-handler: 5.2.*
This package is auto-updated.
Last update: 2024-09-18 03:09:18 UTC
README
什么是Wordlist-Consumer?
单词列表消费者是一个智能消费者,能够消费单词列表并返回几乎真实的对象(人、地址、公司)!
安装
此库可以通过composer安装,安装命令如下
composer require danielspinard/wordlist-consumer
打开库Packagist
消费者
人 - ✔️
地址 - ✔
公司 - ❌
测试输出
php example/facade.php
^ "name: Yvan"
^ "other name: Edwards"
^ "two random surnames: Jackson - Wood"
php example/person.php
^ WordlistConsumer\Consumers\Person^ {
#name: "Maarten"
#surname: "Giles"
#email: "maartengile6125@outlook.com"
#age: 36
-birth: {
+"day": 10
+"month": 12
+"year": 1985
}
#address: null
}
^ "My name is Maarten"
^ "I have 36 years"
^ "I was born on the 10th of the 12th month"
^ "Send me an e-mail at maartengile6125@outlook.com"
php example/address.php
^ WordlistConsumer\Consumers\AddressConsumer^ {#6
#city: "Menifee"
#state: "California"
#country: "United States"
#geoNameId: 5372205
}