phonyland / phony
The realistic PHP Fake Data Generation Framework
This package's canonical repository appears to be gone and the package has been frozen as a result.
Requires
- php: ^7.4 || ^8.0
Requires (Dev)
- gherkins/regexpbuilderphp: ^1.0
- phonyland/dev-tools: dev-master
This package is auto-updated.
Last update: 2022-01-16 20:01:37 UTC
README
This package is in active development and not production ready.
Phony is a PHP
package that can generate a wide range of fake data.
Phony is heavily inspired by Perl's Data::Faker, Ruby's Faker, ffaker and PHP's Faker.
🚀 Installation
Phony framework requires PHP
>= 7.4
or >= 8.0
.
You can install the package via composer:
composer require phonyland/phony
🙌 Usage
<?php use Phonyland\Phony; $🙃 = new Phony('en'); $🙃->address->city; // => "Imogeneborough" $🙃->📫->city; // => "Imogeneborough" $🙃->alphabet->uppercase_letter; // => "P" $🙃->🔤->uppercase_letter; // => "P" $🙃->ancient->god; // => "Zeus" $🙃->📜->god; // => "Zeus" $🙃->coin->flip; // => "Heads" $🙃->currency->name; // => "Swedish Krona" $🙃->person->name; // => "Tyshawn Johns Sr."
Fakes
Standard
- $🙃->address
- $🙃->alphabet
- $🙃->ancient
- $🙃->artist
- $🙃->coin
- $🙃->cosmere
- $🙃->currency
- $🙃->person
- $🙃->slack_emoji
🐛 Testing
composer test
📖 Changelog
Please see CHANGELOG for more information what has changed recently.
🤝 Contributing
Please see CONTRIBUTING for details.
🔒 Security
If you discover any security related issues, please email phony@deligoz.me instead of using the issue tracker.
🎉 Credits
📄 License
The MIT License (MIT). Please see License File for more information.