irstea/phpstan-config
A shared PHPStan configuration package that provides ready-made static analysis rules and settings, so PHP and Laravel projects can adopt strict, consistent code quality checks quickly without manually building and maintaining their own phpstan.neon setup.
phpstan.neon preset package, or pull an existing one. Adopting a shared config package is a small, low-risk "adopt" decision compared to taking on a framework or runtime library.includes: entry, reducing setup time and the "why does my repo fail on main?" class of support tickets.Caveat for the decision record: this package shows zero stars, zero dependents, and lives on a self-hosted GitLab (gitlab.irstea.fr). Treat it as an internal artifact of its originating organization, not a community-vetted dependency. The realistic product decision is "review and vendor/fork the config into our own repo," not "add a runtime dependency on this package."
Consider it when:
phpstan.neon files drifting apart.ignoreErrors / tmpDir / parallel settings to lift into your own config.Look elsewhere when:
larastan/larastan, which bundles Laravel-aware rules, stubs, and a maintained config. (The description claims "Laravel-friendly defaults," but this is a generic preset; don't rely on it for framework-aware analysis.)phpstan.neon is simpler than an extra dependency.Recommended posture: read the shipped .neon files (a config file is cheap to audit), and if the ruleset fits, copy the useful parts into a first-party repo with a license and provenance note. You get the standardization benefit without the private-registry dependency or abandonment risk.
For executives (one paragraph): We are standardizing how we check PHP code quality before it ships. PHPStan is the industry-standard static analyzer for PHP; this package is a shared, pre-tuned configuration for it. Adopting a single shared config — whether this one or our own fork — means every PHP service is held to the same quality bar, defects are caught in CI instead of production, and engineers stop re-arguing the rules per repository. The cost is near zero (a config file plus a CI step); the benefit is fewer escaped defects and faster onboarding. Because this particular package has no public adoption, no maintainer signal, and is hosted on an external organization's private GitLab, I recommend we fork the config into our own repository rather than take a direct dependency — we keep the standardization benefit while owning maintenance and supply-chain risk.
For engineering (the ask):
.neon file(s), confirm the PHPStan level and ruleset match our intent, and note any ignores, baselines, or excluded paths we disagree with.our-org/phpstan-config (or a shared template), pin the PHPStan version, and document the upgrade path.larastan for Laravel services so we don't double-configure or get conflicting rules.Bottom line: the idea — a shared, versioned PHPStan config — is worth adopting; the package as-is is not a safe dependency. Review it, fork it, own it, and use it as the mechanism for a deliberate, incremental code-quality bar.
How can I help you explore Laravel packages today?