constants.php 366 B

123456789101112131415
  1. <?php
  2. require __DIR__ . '/../vendor/autoload.php';
  3. $class = new ReflectionClass($argv[1]);
  4. echo "Predefined helper constants from `{$class->getName()}`\n\n";
  5. echo "| Constant | {$argv[2]} | \n|----------|----------| \n";
  6. foreach( $class->getConstants() as $constant => $value ) {
  7. echo "| `{$class->getShortName()}::{$constant}` | {$value} | \n";
  8. }
  9. echo "\n";