Catch broken Statamic tags and templates before they reach production.
This Sheath plugin checks Statamic tags wherever you use them: Blade components, fluent tag calls, or @tags definitions. It also understands Antlers embedded in Blade, and reports problems without rendering views or running application tags.
composer require --dev fortephp/sheath-statamicLaravel discovers the package automatically. Add its preset to config/sheath.php:
'preset' => ['recommended', 'statamic'],Run Sheath normally:
php artisan sheath:lintYou can also try the plugin without changing your config:
php artisan sheath:lint --preset=statamic- unknown Statamic tags and methods across component, fluent, and
@tagssyntax; - missing required parameters and paired content;
- missing partials, collections, taxonomies, forms, asset containers, and other literal project resources;
- incompatible pagination, chunking, limiting, and collection-navigation options;
- malformed
@antlersregions and invalid Antlers expressions; - misplaced
slotandno_resultstags, and malformed Statamic Blade directives; - executable
dump,dd, anddddtags or modifiers left in templates.
Errors are reported in your Blade or Antlers source rather than generated compiler output, so they are easier to find and fix.
The plugin reads tags, modifiers, project resources, views, and add-ons from your Statamic application. Custom and wildcard tags work automatically. When a dynamic value cannot be checked reliably, the plugin leaves it alone instead of guessing.
The statamic preset enables all 19 rules at error severity. You can adjust individual rules in config/sheath.php:
'rules' => [
'statamic-no-debug-tags' => 'warning',
'statamic-partial-exists' => 'off',
'statamic-resource-exists' => 'error',
],Use php artisan sheath:lint --print-config to see every active rule and severity. The rules do not offer automatic fixes because the right change depends on what the template should do.
- PHP 8.2 or newer
- Statamic 6.x
- Sheath 1.x
MIT. See LICENSE.md.