getRoutes($method); foreach ($routes as $from => $to) { // filter for strings, as callbacks aren't displayable if (is_string($to)) { $tbody[] = [ $from, $method, $to, ]; } } } $thead = [ 'Route', 'Method', 'Command', ]; CLI::table($tbody, $thead); } }