PHPackages                             oneup/phpstan-contao - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. oneup/phpstan-contao

Abandoned → [contao/phpstan](/?search=contao%2Fphpstan)ArchivedLibrary

oneup/phpstan-contao
====================

Contao Framework extensions and rules for PHPStan

0.2.2(7y ago)0638MITPHPPHP ^7.1

Since Jul 24Pushed 7y ago2 watchersCompare

[ Source](https://github.com/1up-lab/phpstan-contao)[ Packagist](https://packagist.org/packages/oneup/phpstan-contao)[ RSS](/packages/oneup-phpstan-contao/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (14)Versions (13)Used By (0)

PHPStan Contao Framework extensions and rules
=============================================

[](#phpstan-contao-framework-extensions-and-rules)

- [PHPStan](https://github.com/phpstan/phpstan)

This extension provides following features:

- Provides correct return types for Contao services.

[![Author](https://camo.githubusercontent.com/edb32eb7f86423e1fdbc9633f76361a7f34d675500642c4f0d6ce38fb8ba4f82/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40317570676d62682d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/1upgmbh)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Travis CI](https://camo.githubusercontent.com/de7d5aadbbbd19c19e7362882f9f3256fadc974b032e13eea0fa869d6aed589a/68747470733a2f2f7472617669732d63692e6f72672f3175702d6c61622f7068707374616e2d636f6e74616f2e7376673f7374796c653d666c61742d737175617265266272616e63683d6d6173746572)](https://travis-ci.org/1up-lab/phpstan-contao)[![Coverage Status](https://camo.githubusercontent.com/6bd8eafb617b1dd9c485f34600459b2584bb5ec5fd6a9d54885d7aa84f5ad839/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f3175702d6c61622f7068707374616e2d636f6e74616f2f62616467652e7376673f7374796c653d666c61742d737175617265266272616e63683d6d6173746572)](https://coveralls.io/github/1up-lab/phpstan-contao?branch=master)[![Total Downloads](https://camo.githubusercontent.com/6b639673becaff7c4eb887325b8e4d5fca0b777e88adccc35ec26c6595ccec7c/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6575702f7068707374616e2d636f6e74616f2f646f776e6c6f6164733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oneup/phpstan-contao)

Usage
-----

[](#usage)

To use this extension, require it in [Composer](https://getcomposer.org/):

```
composer require --dev oneup/phpstan-contao
```

And include extension.neon in your project's PHPStan config:

```
includes:
    - vendor/oneup/phpstan-contao/extension.neon
    - vendor/phpstan/phpstan-symfony/extension.neon

parameters:
    contao:
        services_yml_path: %currentWorkingDirectory%/src/Resources/config/services.yml

    symfony:
        container_xml_path: %currentWorkingDirectory%/vendor/oneup/phpstan-contao/var/cache/dev/appDevPHPStanProjectContainer.xml

```

Limitations
-----------

[](#limitations)

You have to provide a path to `services.yml` or similar yml file describing your services.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

11

Last Release

2825d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87bf1d07a851471e5d0ba2052e6a7a78d6313378214087a2919ff9979656ad0b?d=identicon)[bytehead](/maintainers/bytehead)

---

Top Contributors

[![bytehead](https://avatars.githubusercontent.com/u/754921?v=4)](https://github.com/bytehead "bytehead (35 commits)")[![leofeyer](https://avatars.githubusercontent.com/u/1192057?v=4)](https://github.com/leofeyer "leofeyer (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/oneup-phpstan-contao/health.svg)

```
[![Health](https://phpackages.com/badges/oneup-phpstan-contao/health.svg)](https://phpackages.com/packages/oneup-phpstan-contao)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[wallabag/wallabag

open source self hostable read-it-later web application

12.6k2.2k](/packages/wallabag-wallabag)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[oro/platform

Business Application Platform (BAP)

644134.8k84](/packages/oro-platform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
