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

Laravel Shortcodes Laravel Package

webwizo/laravel-shortcodes

Add WordPress-style shortcodes to any Laravel app. Register custom shortcode classes, then use them in Blade views, content, or emails. Supports attributes, self-closing and enclosing tags, with a clean API for parsing and rendering dynamic content.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature reliability: Enables shortcode-based dynamic content (embeds, widgets, personalized tokens) to render correctly even when content passes through HTML sanitizers that encode = and " as numeric entities—common in user-generated content, WYSIWYG editors, and CMS pipelines.
  • Build vs. buy: Strengthens the case for adopting this package instead of building a custom shortcode parser, because it now handles a real-world sanitization edge case with a dedicated regression test.
  • Roadmap: Unblocks features that rely on shortcodes inside sanitized content without requiring custom preprocessing or workarounds.
  • Use cases: Laravel applications with forums, comments, marketing emails, CMS pages, or any content flow where sanitization is applied before shortcode compilation.

When to Consider This Package

  • Adopt when: You need shortcode parsing in Laravel, your content may be sanitized (e.g., HTMLPurifier, custom sanitizers), or you want a maintained package with regression coverage for entity-encoded attributes.
  • Adopt when: You want to avoid maintaining a custom parser for edge cases like numeric-entity decoding.
  • Look elsewhere when: You need a full templating engine, complex nested shortcode logic beyond simple attributes, or you cannot accept an external dependency. Also look elsewhere if your content never passes through sanitizers and you need zero-overhead parsing.

How to Pitch It (Stakeholders)

  • Executives: This patch release reduces risk of broken content rendering in user-generated and sanitized content, improving reliability without new feature scope or migration cost. It supports content-driven features while avoiding custom parser maintenance.
  • Engineering: v1.0.34 is a low-risk bug fix: it decodes numeric entities (=, ") before attribute parsing and adds a regression test (HtmlEntityAttributeParsingTest). No breaking changes; safe to upgrade. It closes a real gap where htmlspecialchars_decode() alone was insufficient, making the package more robust for sanitized input pipelines.
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.
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk