PHPackages                             stickee/larastan-config - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. stickee/larastan-config

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

stickee/larastan-config
=======================

stickee's Larastan config

v3.1.0(1y ago)016.7k↓67.8%1[2 PRs](https://github.com/stickeeuk/larastan-config/pulls)1MITPHP ^8.3CI passing

Since Nov 7Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/stickeeuk/larastan-config)[ Packagist](https://packagist.org/packages/stickee/larastan-config)[ RSS](/packages/stickee-larastan-config/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (4)Versions (18)Used By (1)

stickee Larastan config
=======================

[](#stickee-larastan-config)

Provides a [Larastan](https://github.com/larastan/larastan) config for stickee projects.

Larastan is a [PHPStan](https://phpstan.org/) wrapper for Laravel.

It is ran by using the `phpstan` command and so will be referred to as PHPStan from now on.

Installation
------------

[](#installation)

```
composer require --dev stickee/larastan-config
cp vendor/stickee/larastan-config/dist/phpstan.dist.neon phpstan.dist.neon
```

You must commit the `phpstan.dist.neon` config file.

Setup
-----

[](#setup)

See [the upgrade guide on PHPStan](https://github.com/larastan/larastan/blob/3.x/UPGRADE.md#correct-return-types-for-model-relation-methods) for a Rector rule that should be run before using this config.

Usage
-----

[](#usage)

```
vendor/bin/phpstan analyse -c phpstan.dist.neon
```

[You should always analyse the whole project.](https://phpstan.org/blog/why-you-should-always-analyse-whole-project)

### Overrides

[](#overrides)

You may override any of the settings by editing the `phpstan.dist.neon` file.

The options are available at .

### Baseline

[](#baseline)

It would be a pain to add PHPStan to your project and have to fix all the existing errors before you can start using it. For this reason you can generate a "baseline" with this command:

```
vendor/bin/phpstan analyse -c phpstan.dist.neon --generate-baseline
```

and commit the new `phpstan-baseline.neon` file.

This means PHPStan will ignore any errors in this file so you can use PHPStan to check for errors in any new code you add.

If you get any free time you can refer to this file for code that should be fixed and regenerate the baseline (with the same command) afterwards.

CI
--

[](#ci)

An example GitHub actions workflow is included at `/dist/.github/workflows/phpstan.yaml`.

It will run PHPStan against a PR as a "check" and output any errors it finds against the commit that failed.

The action first checks if any PHP files have been changed and if it needs to run at all. This is because PHPStan must analyse all of the application code at once and therefore takes a bit of time, so it's good to skip it if we can.

The action refers to a CI config at `/dist/.github/workflows/phpstan.ci.neon` (that you can copy into the root of your project) which includes the original config and also ignores unmatched ignored errors to keep the check clean of these errors.

Problems running PHPStan
------------------------

[](#problems-running-phpstan)

The following are some of the easily fixable problems you may run into using PHPStan and Larastan:

### Access to an undefined property

[](#access-to-an-undefined-property)

There is [a guide on the PHPStan blog](https://phpstan.org/blog/solving-phpstan-access-to-undefined-property) that contains suggestions for fixing this.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance53

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~83 days

Recently: every ~49 days

Total

11

Last Release

508d ago

Major Versions

v1.0.0 → v2.0.02022-12-08

v2.4.0 → v3.x-dev2025-02-03

PHP version history (3 changes)v1.0.0PHP ^7.4|^8.1

v2.0.0PHP ^8.1

v3.x-devPHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48593081?v=4)[Greg Pinnington](/maintainers/stickeegreg)[@stickeegreg](https://github.com/stickeegreg)

![](https://avatars.githubusercontent.com/u/17043581?v=4)[James Nestoruk](/maintainers/stickeejamesn)[@stickeejamesn](https://github.com/stickeejamesn)

![](https://www.gravatar.com/avatar/b48c05eff46af005b9fa5e924383921172dc8c0f7ec04e9005b2f07ad2f196ae?d=identicon)[stickeepaul](/maintainers/stickeepaul)

---

Top Contributors

[![stickeepaul](https://avatars.githubusercontent.com/u/46900932?v=4)](https://github.com/stickeepaul "stickeepaul (40 commits)")[![stickeeoliver](https://avatars.githubusercontent.com/u/77276885?v=4)](https://github.com/stickeeoliver "stickeeoliver (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![ZebraNorth](https://avatars.githubusercontent.com/u/6115962?v=4)](https://github.com/ZebraNorth "ZebraNorth (2 commits)")[![stickeegreg](https://avatars.githubusercontent.com/u/48593081?v=4)](https://github.com/stickeegreg "stickeegreg (1 commits)")

---

Tags

larastanphpphpstan

### Embed Badge

![Health badge](/badges/stickee-larastan-config/health.svg)

```
[![Health](https://phpackages.com/badges/stickee-larastan-config/health.svg)](https://phpackages.com/packages/stickee-larastan-config)
```

###  Alternatives

[worksome/coding-style

Worksomes coding style

49814.9k66](/packages/worksome-coding-style)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)

PHPackages © 2026

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