webignition/string-parser
A lightweight PHP library for parsing strings character by character. It offers a simple state-machine style API for walking input, inspecting characters, and extracting values, making it a practical foundation for building custom parsers and tokenizers.
webignition/string-parser is a lightweight PHP library for extracting structured data from strings using placeholder-based patterns. Define a pattern such as {{scheme}}://{{host}}/{{path}} and the parser returns matched values, making it ideal for parsing URLs, identifiers, log lines, or any semi-structured text.
It is framework-agnostic, requires no dependencies, and integrates cleanly with PHPUnit-based workflows.
How can I help you explore Laravel packages today?