| 1 | <?php | ||
| 13 | class FigletManager | ||
| 14 | { | ||
| 15 | const FIGLET_FUNCTION_NAME_REGEX = '^(figlet)_([a-zA-Z]*)$'; | ||
| 16 | |||
| 17 | /** | ||
| 18 | * Static calls interface | ||
| 19 | */ | ||
| 20 | public static function __callstatic($name, $params) | ||
| 35 | |||
| 36 | /** | ||
| 37 | * Compute text banner from given string | ||
| 38 | * | ||
| 39 | * @param string $string | ||
| 40 | * @param string $fontName | ||
| 41 | * | ||
| 42 | * @return string | ||
| 43 | */ | ||
| 44 | public static function render($string, $fontName) | ||
| 54 | |||
| 55 | /** | ||
| 56 | * Analyse function name | ||
| 57 | * | ||
| 58 | * @param string $functionName | ||
| 59 | * | ||
| 60 | * @return array|bool | ||
| 61 | */ | ||
| 62 | public static function isFigletCall($functionName) | ||
| 73 | |||
| 74 | /** | ||
| 75 | * Get provided fonts | ||
| 76 | * | ||
| 77 | * The fonts provided are the one packaged in vendor packaged/figlet | ||
| 78 | * | ||
| 79 | * @return string[] | ||
| 80 | */ | ||
| 81 | public static function getKnownFonts() | ||
| 106 | } | ||
| 107 |