jensderond/phpstan-craftcms

CraftCMS extension for PHPStan

Maintainers

Package info

github.com/Jensderond/phpstan-craftcms

pkg:composer/jensderond/phpstan-craftcms

Statistics

Installs: 1 256

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.2 2026-02-09 21:06 UTC

This package is auto-updated.

Last update: 2026-03-09 21:16:13 UTC


README

Packagist Version

Extension for PHPStan for better support for Craft CMS. The following features are provided:

  • Configure autoload of Craft CMS for analysis
  • Stub to support different ElementQuery-classes
  • Dependency injection container with Craft::$container->get()

Install

Via Composer

$ composer require --dev jensderond/phpstan-craftcms

Usage

Add phpstan-craftcms to the project phpstan.neon / phpstan.neon.dist:

includes:
    - vendor/jensderond/phpstan-craftcms/extension.neon

Credits