robinthehood/tokenizer (packagist): With Tokenizer you can easily convert a string to a stream or array of tokens.
Keywords: parser|tokenizer|token|lexer