mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-04-21 16:01:56 +02:00
Merge pull request #1614 from samnela/fix-readme
Suggest PSR-4 compliant autoloader in comment
This commit is contained in:
commit
825a16c127
@ -57,7 +57,7 @@ Use `Faker\Factory::create()` to create and initialize a faker generator, which
|
||||
<?php
|
||||
// require the Faker autoloader
|
||||
require_once '/path/to/Faker/src/autoload.php';
|
||||
// alternatively, use another PSR-0 compliant autoloader (like the Symfony2 ClassLoader for instance)
|
||||
// alternatively, use another PSR-4 compliant autoloader
|
||||
|
||||
// use the factory to create a Faker\Generator instance
|
||||
$faker = Faker\Factory::create();
|
||||
|
Loading…
x
Reference in New Issue
Block a user