tcb13/substringy
Substringy is a small PHP utility for working with substrings through a clean, fluent API. It provides helpers to extract text before, after, or between delimiters, along with common string slicing and search operations, making everyday string manipulation simpler in Laravel and standalone PHP proje...
Str::between()-style helper layer, the team can adopt a small MIT-licensed extension on top of an existing dependency (Stringy). This favors buy/adopt for low-risk utility code.Adopt when:
Look elsewhere when:
str_contains, str_starts_with, substr, explode) or Laravel's own Str helpers — in which case adding a dependency is unnecessary surface area.Str, Symfony String, or core Stringy) and doesn't want a satellite extension package in the dependency graph.For executives: This is a small, MIT-licensed PHP utility that extends an existing string library with substring-parsing helpers. It offers a modest reduction in custom code — useful for templating, content parsing, and data-extraction features — with no infrastructure cost. The trade-off is maintenance risk: it's a low-profile package with limited community adoption, so we should treat it as an optional convenience, not a platform dependency. Recommendation: pilot in non-critical modules, pin the version, and keep the ability to vendor the handful of functions internally if the package goes stale.
For engineering: It layers substring helpers (between/before/after semantics) onto Stringy, letting us replace scattered regex and substr calls with a readable fluent API. Cost is one transitive dependency; benefit is fewer bespoke helpers and consistent behavior. Before adopting, confirm PHP/Laravel compatibility, review the source (MIT allows vendoring), and add a smoke test around the specific methods we use so a future upgrade or removal is a local change, not a refactor. If provenance can't be verified or the maintainer goes quiet, we can inline the functions we need in an afternoon — so this is a reversible decision with a low blast radius.
How can I help you explore Laravel packages today?