mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-27 18:52:43 +01:00
17 lines
529 B
PHP
17 lines
529 B
PHP
<?php
|
|
require_once __DIR__ . '/../src/Factory.php';
|
|
require_once __DIR__ . '/../src/Documentor.php';
|
|
|
|
$generator = Faker\Factory::create();
|
|
$generator->seed(1);
|
|
$documentor = new Faker\Documentor($generator);
|
|
?>
|
|
<?php foreach ($documentor->getFormatters() as $provider => $formatters): ?>
|
|
|
|
### `<?php echo $provider ?>`
|
|
|
|
<?php foreach ($formatters as $formatter => $example): ?>
|
|
<?php echo str_pad($formatter, 23) ?><?php if ($example): ?> // <?php echo $example ?> <?php endif; ?>
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|