danielspinard / wordlist-consumer
A smart consumer capable of consuming word lists and returning an almost real objects
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-11-18 03:26:53 UTC
README
What is Wordlist-Consumer?
The word list consumer is an intelligent consumer, able to consume word lists and return an almost real object (Person, Address, Company)!
Installing
This library can be installed by the composer, the command to install is the one below:
composer require danielspinard/wordlist-consumer
Open library Packagist
Consumers
Person - ✔️
Address - ✔
Company - ❌
Tests output
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
}