murdercode/laravel-shortcode-plus
A Laravel package for parsing shortcodes inside content, with support for attributes and custom handlers. Register your own shortcodes, then render them in Blade views or user-generated text to keep templates clean and content flexible without hardcoding markup.
[tag]…[/tag] parser (regex edge cases, nesting, attribute quoting, escaping) with a maintained dependency. A PM decision to adopt is primarily a buy decision that removes a small but chronically bug-prone subsystem from the roadmap.Consider adopting when:
Look elsewhere when:
To executives: This is a small, mature open-source library that lets non-engineers drop dynamic blocks into written content without engineering involvement. The business case is velocity and reduced engineering interruption — content changes stop being tickets. Cost is a dependency, not a license; the risk is maintainer concentration, mitigated by a thin integration layer that keeps our content portable. Latest release (v5.3.1) is a patch — no migration, no breaking changes, no budget impact.
To engineering: Server-side shortcode registry mapping [tag attr="…"]…[/tag] to invokable classes resolved from the container. Fits Blade rendering and testable content pipelines; keeps parsing, attribute handling, and nesting out of our codebase. Integration surface should be kept narrow — wrap registration behind our own service so the dependency is swappable and so shortcode syntax is defined once for any future non-PHP renderer. Upgrade path from 5.3.0 to 5.3.1 is a patch bump; verify the diff, then bump within normal dependency cadence. Add coverage around any shortcodes rendered from user-editable fields, since output escaping and authorization inside shortcode handlers are ours to own, not the package's.
How can I help you explore Laravel packages today?