adrianbaez/short-code-bundle
Laravel bundle that adds shortcode parsing to your app, letting you register custom shortcodes and render dynamic content inside text/HTML. Useful for CMS-style pages, editors, emails, and user-generated content needing embedded components.
[shortcode] → HTML/rendered output), which fits well in content-heavy applications (e.g., CMS, marketing sites, documentation platforms) where dynamic content insertion is required. However, its PHP/Laravel-specific nature may limit adoption in non-PHP stacks.ShortCode::addShortcode()), but lacks modern features like React/Vue integration or serverless compatibility. May require wrappers for frontend frameworks.facades, changed Blade syntax, etc.). Requires backporting or forking for modern Laravel.Blade components or Alpine.js for dynamic content?spatie/laravel-html for safer HTML parsing)?composer require adrianbaez/short-code-bundle).laravel-shift/blade-one for Laravel 8+).illuminate/support).@shortcode('name') syntax.shortcodes table) may require Eloquent models.htmlspecialchars or spatie/laravel-html).[button], [gallery]).ShortCode::addShortcode().Cache::remember() for parsed output).composer.json to avoid breaking changes.spatie/laravel-html).Cache::forever() for static shortcodes).| Scenario | Impact | Mitigation |
|---|---|---|
| Shortcode parsing fail | Broken UI (raw [shortcode]) |
Fallback to raw text or error page. |
| Laravel version mismatch | Package fails to load | Fork/replace with native Blade. |
| Database overload | Slow parsing | Cache parsed shortcodes. |
| Security vulnerability | XSS if unsanitized output | Use spatie/laravel-html for sanitization. |
How can I help you explore Laravel packages today?