No reviews yet

PHPStan Extension for Sylius

This package provides some additional features for PHPStan to detect configuration issues in Sylius projects.

Published
08.10.2025
Latest version
v0.3.0
Last update
21.03.2026
Sylius version
^2.1
Downloads
1K+

Feature overview

This PHPStan extension works for both Sylius plugins and Sylius application projects.

The following rules have been implemented:

  • Rule to check if resource classes defined either via AbstractGrid::getResourceClass() or the #AsGrid attribute exist
  • Rule to check that configured grid fields belong to the configured resource class
  • Rule to check that configured filter fields belong to the configured resource class
    • custom filter types are supported
  • Rule to check that grid class configured via the Index attribute exists
  • Rule to check that form type configured via the AsResource attribute exists

Current assumptions:

  • Grids are configured by extending the Sylius\Bundle\GridBundle\Grid\AbstractGrid class

Reviews

No reviews yet

No reviews yet. Be the first to review this product!

Loading
  • MIT license
  • Free updates
  • Community support

Have already account? Sign in
See how it works
Compatibility & requirements
  • Compatible with Sylius 2.1 and higher
  • PHPStan 2.x

No reviews yet
3 plugins
Since 24.02.2026

Our pulse is cross-technology software development that beats with every line of code. Awarded as regional advocate of the year 2025 in Germany.

Read more
Sylius Addons Marketplace

Discover plugins, themes, and resources from trusted vendors, helping you get the most out of your work.

© 2026 Sylius. All rights reserved.

Powered by Stripe