Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
String Parser

String Parser Laravel Package

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.

Deep Wiki
Context7

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.

  • Placeholder patterns for named, typed value extraction
  • Returns a ParseResult exposing matched values by name
  • Handles optional and repeated pattern segments
  • Strict validation with clear failure results
  • Simple, dependency-free API installable via Composer
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console