mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-21 15:59:52 +01:00
Updated readme
This commit is contained in:
parent
8c1a26909c
commit
62c90723a8
@ -9,11 +9,13 @@ Faker requires PHP >= 5.3.
|
||||
## Basic Usage
|
||||
|
||||
Require the Faker autoloader to use Faker in a script
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
require_once '/path/to/src/autoload.php';
|
||||
```
|
||||
|
||||
Or use your own autoloader (ex: Symfony2 ClassLoader) to autoload the Faker namespace.
|
||||
|
||||
Use `Faker\Factory::create()` to create and initialize a faker generator, which can generate data by accessing properties named after the type of data you want.
|
||||
|
Loading…
x
Reference in New Issue
Block a user