phonyland/phony

The realistic PHP Fake Data Generation Framework

dev-master 2022-01-16 19:59 UTC

This package is auto-updated.

Last update: 2022-01-16 20:01:37 UTC


README

Phony Logo

Latest Version on Packagist Total Downloads Packagist FOSSA Status

Tests Bugs Coverage Lines of Code

Quality Gate Status Maintainability Rating Reliability Rating Security Rating Technical Debt

Open Source Love

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

🐛 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.

FOSSA Status