vedmant/laravel-shortcodes
Add WordPress-style shortcodes to your Laravel app. Register custom tags with attributes, parse them in Blade views or any content, and render dynamic output cleanly. Lightweight and easy to extend, ideal for CMS-like content and reusable snippets.
vedmant/laravel-shortcodes is a lightweight Laravel package for parsing WordPress-style shortcodes in your application's content. It lets you register custom shortcodes with attributes and enclosed content, then render them anywhere—Blade views, models, or plain strings—keeping markup clean and separating presentation logic from stored text.
Define each shortcode once with a handler callback, and the package handles parsing, attribute extraction, self-closing tags, and nested enclosed content. It integrates naturally with Laravel's service container, making shortcodes easy to test and reuse across projects.
How can I help you explore Laravel packages today?