tehwave/laravel-shortcodes
tehwave/laravel-shortcodes brings WordPress-style shortcodes to Laravel Blade templates. Register custom shortcodes with attributes and enclosed content, then use them in any view to keep markup clean and reusable. A simple, lightweight way to add CMS-like content to your Blade views.
tehwave/laravel-shortcodes:^3; Laravel 11 projects should stay on the 2.x branch.composer require tehwave/laravel-shortcodes:^3. If the package exposes config or views, publish them only when you need to customize output.AppServiceProvider or a dedicated ShortcodeServiceProvider. Keep each handler small, deterministic, and free of request/session side effects.shortcodes.button view, rather than building HTML strings inline. Validate required attributes, apply defaults, and cast booleans/numbers in the handler.HtmlString or a single unescaped Blade expression.^2 or upgrade Laravel first. On Laravel 13, update CI and local environments to PHP 8.3+.composer why-not tehwave/laravel-shortcodes ^3 and verify the Laravel/PHP platform constraints in composer.json and CI.How can I help you explore Laravel packages today?