mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-04-20 23:41:50 +02:00
19 lines
516 B
PHP
19 lines
516 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.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;
|