dklis / faker2
Faker2 is a fork of Faker, in PHP 8 code and with only 1 locale preloaded
1.0.0
2022-03-12 01:24 UTC
Requires
- php: ^8.0
- ext-curl: *
- ext-dom: *
- ext-mbstring: *
Requires (Dev)
- ext-intl: *
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: ^3.6
- vimeo/psalm: ^4.22
This package is auto-updated.
Last update: 2024-11-12 07:41:25 UTC
README
Faker2 is a fork of the (archived) original Faker PHP library. More information on the reasons the original creator decided to archive the library can be found in this article.
Faker2 differences from the original library:
- PHP requirement upgraded to ^8.0.
- PHPUnit upgraded to version 9.5.
- All locales, except en_US, are removed (along with their tests).
- All ORM-related classes are removed.
- Guesser classes are removed.
- Type hinting added on all methods.
- Test suite refactored for PHPUnit 9.5, type-related tests removed.
- Psalm added
Requirements
Faker2 requires PHP version 8.0 or greater.
Installation
The easiest way to get started with Faker2 is through composer:
# Install as dependency
composer require "dklis/faker2"
Usage
For usage refer to original Faker readme Faker repo README
Issues
Bug reports and feature requests can be submitted on the Github Issue Tracker.