Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
Merge branch 'develop' of https://github.com/iamalirezaj/faker into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
Alireza Josheghani committed Feb 4, 2017
2 parents a47a1fd + 8bdaa26 commit 351b84f
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
[![Build Status](https://travis-ci.org/iamalirezaj/faker.svg)](https://travis-ci.org/iamalirezaj/faker)
[![Latest Stable Version](https://poser.pugx.org/josh/faker/v/stable)](https://packagist.org/packages/josh/faker)
[![Total Downloads](https://poser.pugx.org/josh/faker/downloads)](https://packagist.org/packages/josh/faker)
[![Latest Unstable Version](https://poser.pugx.org/josh/faker/v/unstable)](//packagist.org/packages/josh/faker)
[![License](https://poser.pugx.org/josh/faker/license)](https://packagist.org/packages/josh/faker)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/iamalirezaj/faker/badges/quality-score.png)](https://scrutinizer-ci.com/g/iamalirezaj/faker)

# Josh faker component
A persian faker library for php

## Requirement
* php 5.5 >=
* php 5.6 >=

## Install with composer
You can install this package throw the [Composer](http://getcomposer.org) by running:
Expand All @@ -11,7 +18,30 @@ 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::fulltname() ``` | 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.

0 comments on commit 351b84f

Please sign in to comment.