Download the PHP package amyavari/persian-faker-php without Composer
On this page you can find all versions of the php package amyavari/persian-faker-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package persian-faker-php
Persian Faker for PHP
persian-faker-php is an extension for fakerphp/faker that generates Persian-language and Iran-specific data, such as Persian text, addresses, personal details, and more.
To view the Persian documentation, please refer to docs/fa/01_getting_started.md.
این کتابخانه بر پایه کتابخانه fakerphp/faker ساخته شده و هدف آن پشتیبانی از متن و مشخصات فارسی بهطور خاص برای اطلاعات کشور ایران است.
برای مشاهده راهنمای فارسی، لطفاً به فایل docs/fa/01_getting_started.md مراجعه کنید.
Requirements
- PHP version
8.2.0or higher
Table of Contents
- Installation
- Usage
- Available Methods
- Person Details
- Address
- Phone
- Company
- Text
- Payment
- Color
- Internet
- Contributing
Installation
To install the package, use Composer.
Note: This package is intended for use in a development environment, so it's recommended to install it with the --dev flag.
Usage
You can easily create an instance of Faker in your PHP projects by calling the create() method from the Factory class
Usage Helper
If you prefer a simpler way to get a Persian Faker instance, you can use the global persian_faker() helper function provided by this package. This is especially useful in Laravel or any PHP project where global helpers are available.
This helper will automatically resolve the Faker instance, using the Laravel service container if available, or falling back to a direct instantiation otherwise.
Available Methods
Most methods in persian-faker-php are extensions of the fakerphp/faker library, supporting only Persian language and Iran-specific data. The implementation and arguments for these methods are the same as those in the original Faker library.
Person Details
To view the complete documentation for the person methods, please refer to docs/en/02-person.md
Address
To view the complete documentation for the address methods, please refer to docs/en/03-address.md
Phone
To view the complete documentation for the phone methods, please refer to docs/en/04-phone.md
Company
To view the complete documentation for the company methods, please refer to docs/en/05-company.md
Text
To view the complete documentation for the text methods, please refer to docs/en/06-text.md
Payment
To view the complete documentation for the payment methods, please refer to docs/en/07-payment.md
Color
To view the complete documentation for the color methods, please refer to docs/en/08-color.md
Internet
To view the complete documentation for the internet methods, please refer to docs/en/09-internet.md
Contributing
Thank you for considering contributing to the Persian Faker PHP! The contribution guide can be found in the CONTRIBUTING.md
License
Persian Faker PHP was created by Ali Mohammad Yavari under the MIT license.
This package utilizes the nunomaduro/skeleton-php repository as a starting point and for configuration settings.