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.