github-counter/vendor/donatj/phpuseragentparser/.helpers/constants.php

15 lines
366 B
PHP
Raw Normal View History

2020-07-22 12:54:04 +02:00
<?php
require __DIR__ . '/../vendor/autoload.php';
$class = new ReflectionClass($argv[1]);
echo "Predefined helper constants from `{$class->getName()}`\n\n";
echo "| Constant | {$argv[2]} | \n|----------|----------| \n";
foreach( $class->getConstants() as $constant => $value ) {
echo "| `{$class->getShortName()}::{$constant}` | {$value} | \n";
}
echo "\n";