https://github.com/mrjosh/faker
💀 A Persian library for generate fake items
https://github.com/mrjosh/faker
city-faker fake faker faker-component generator melicode persian-faker php-faker
Last synced: 5 months ago
JSON representation
💀 A Persian library for generate fake items
- Host: GitHub
- URL: https://github.com/mrjosh/faker
- Owner: mrjosh
- License: mit
- Archived: true
- Created: 2016-12-12T21:05:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-08T12:43:50.000Z (over 6 years ago)
- Last Synced: 2025-10-13T02:41:39.465Z (8 months ago)
- Topics: city-faker, fake, faker, faker-component, generator, melicode, persian-faker, php-faker
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 16
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/iamalirezaj/faker)
[](https://packagist.org/packages/josh/faker)
[](https://packagist.org/packages/josh/faker)
[](//packagist.org/packages/josh/faker)
[](https://packagist.org/packages/josh/faker)
[](https://scrutinizer-ci.com/g/iamalirezaj/faker)
[](https://saythanks.io/to/iamalirezaj)
# Josh faker component
A persian faker library for php
## Requirement
* php 5.6 >=
## Install with composer
You can install this package throw the [Composer](http://getcomposer.org) by running:
```
composer require josh/faker
```
## Usage
You can access to faker objects by according blew following table:
```php
// use the faker namespace
use Josh\Faker\Faker;
```
| Objects | Descriptions |
| --- | --- |
| ``` Faker::firstname() ``` | Return random firstname |
| ``` Faker::lastname() ``` | Return random lastname |
| ``` Faker::fullname() ``` | Return random fullname |
| ``` Faker::company() ``` | Return random company name |
| ``` Faker::mobile() ``` | Return random mobile number |
| ``` Faker::telephone() ``` | Return random telephone number |
| ``` Faker::email() ``` | Return random email address |
| ``` Faker::domain() ``` | Return random domain |
| ``` Faker::website() ``` | Return random website address |
| ``` Faker::pageUrl() ``` | Return random pageUrl |
| ``` Faker::age($min,$max) ``` | Return random age arguments*("Min" , "Max") |
| ``` Faker::address() ``` | Return random postal address |
| ``` Faker::city() ``` | Return random city name |
| ``` Faker::meliCode() ``` | Return random meli code |
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.