documentor.php 481 B

1234567891011121314151617
  1. <?php
  2. require_once __DIR__ . '/../vendor/autoload.php';
  3. $generator = Faker\Factory::create();
  4. $generator->seed(1);
  5. $documentor = new Faker\Documentor($generator);
  6. ?>
  7. <?php foreach ($documentor->getFormatters() as $provider => $formatters): ?>
  8. ### `<?php echo $provider ?>`
  9. <?php foreach ($formatters as $formatter => $example): ?>
  10. <?php echo str_pad($formatter, 23) ?><?php if ($example): ?> // <?php echo $example ?> <?php endif; ?>
  11. <?php endforeach; ?>
  12. <?php endforeach;