- Now TimeParser is not a static class - you need to create an instance of parser.
and then parse any number of strings.
$parser = new wapmorgan\TimeParser\TimeParser('english');
$datetime = $parser->parse(fgets(STDIN));
- For one-call parsing there is a static method
parseString($string, $languages = 'all', $allowAlphabeticUnits = false, $falseWhenNotChanged = false): DateTimeImmutable
. - Added tests.