New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

83 Laravel packages tagged “static-analysis”

Most downloaded: larastan/larastan, with 100,439,351 downloads and 6,560 GitHub stars. Ranked by total downloads — use the controls below to sort by stars, most recently updated, or name.

larastan/larastan

Recommended
Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel
6,560 100,439,351

nunomaduro/larastan

Replacement recommended Trusted maintainer
Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel
6,560 48,814,540

shipmonk/dead-code-detector

Recommended
Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.
539 8,468,318

enlightn/enlightn

Not advised
Enlightn - Your performance & security consultant, an artisan command away.
980 3,451,535

staabm/phpstan-psr3

Use with care
23 1,868,391

calebdw/larastan-livewire

Recommended
A Larastan / PHPStan extension for Livewire.
66 1,275,457

tomasvotruba/bladestan

Recommended
PHPStan rule for static analysis of Blade templates
373 1,144,260

igor-php/igor-php

Recommended
The faithful assistant for your FrankenPHP Workers: finds the state that leaks between requests in Symfony and Laravel Octane apps, from the CLI, PhpStorm, Claude Code or any MCP client.
136 487,884

laraveldaily/filacheck

Recommended
Static analysis for Filament projects - detect deprecated patterns and code issues
128 304,694

worksome/phpstan-request-factories

Solid choice
A PHPStan rule for enforcing that every request has a corresponding factory.
1 292,821

mrpunyapal/peststan

Not advised
PHPStan extension for Pest PHP testing framework
51 271,017

mrpunyapal/rector-pest

Not advised
Rector upgrade rules for Pest - refactoring and best practices for Pest testing framework
74 195,677

heyosseus/sloppy

Use with care
Static analysis for the debt AI coding agents leave behind, on any PHP project: 34 rules, architecture policies and module boundaries you describe, git-diff review, coverage-aware reading order, PHPStan baseline-growth detection, a Rector and Pint fix pass, Pest expectations, CI annotations, agent rulesets, Claude Code hooks and an MCP server. Runs inside PHPStan through the separate heyosseus/phpstan-sloppy extension. Deterministic, local, no LLM.
239 127,959

ivqonsanada/enlightn

Use with care
Fork of Enlightn - Your performance & security consultant, an artisan command away.
1 109,036

shieldci/laravel

Solid choice
Automated code analysis for Laravel applications with 73 open-source analyzers covering security, performance, reliability, code quality, and best practices. ShieldCI Pro adds 82 more (155 total).
4 46,099

guanguans/monorepo-builder-worker

Solid choice
A set of additional release workers for symplify/monorepo-builder.
1 39,423

script-development/phpstan-warroom-rules

Solid choice
Canonical PHPStan rules enforcing war-room doctrine across script-development Laravel territories.
38,881

calebdw/phpstan-laravel

Solid choice
A PHPStan extension for analysis of Laravel applications and packages.
38 38,319

cline/analyzer

Solid choice
Configurable parallel PHP code analyzer for checking class references
29,996

exin/enlightn

Use with care
Fork of Enlightn with Laravel 12 support
25,940

imsuperlative/larastan-filament-macro

Promising
PHPStan extension for Filament's Macroable trait — runtime macro method resolution via Larastan.
5 24,269

alies-dev/psalm-plugin-pest

Use with care
Psalm plugin for Pest: types $this in test closures as the configured TestCase (with its traits and beforeEach() properties), resolves expectation and higher-order test chains, narrows types after expect() and accepts Pest's public API.
2 21,145

pekral/phpcs-rules

Solid choice
Custom ruleset for PHP_CodeSniffer (PHPCS) with additional rules and configuration, based on Slevomat Coding Standard. Helps to enforce consistent code style and best practices in PHP projects.
20,076

kafkiansky/better-laravel

Not advised
A set of rules for the Psalm static analysis tool that help to detect popular issues when working with the Laravel framework.
1 14,875

guanguans/php-cs-fixer-custom-fixers

Solid choice
Use php-cs-fixer to format bats,blade.php,Dockerfile,env,json,md,package.json,sh,sql,text,toml,txt,xml,yaml...files. - 使用 php-cs-fixer 去格式化 bats、blade.php、Dockerfile、env、json、md、package.json、sh、sql、text、toml、txt、xml、yaml...文件。
4 13,793

guanguans/rector-rules

Solid choice
A set of additional rules for rector/rector. - 一套针对 `rector/rector` 的附加规则。
1 12,811

guanguans/laravel-soar

Solid choice
SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。
222 11,642

guanguans/phpstan-rules

Solid choice
A set of additional rules for phpstan/phpstan. - 一套针对 `phpstan/phpstan` 的附加规则。
1 11,323

pushery/sqlens-for-laravel

Solid choice
SQLens — database safety toolkit for Laravel. It lints pending migrations for lock and downtime risk and audits the live schema, on PostgreSQL and MySQL.
11 10,944

jbboehr/phpstan-laravel-validation

Promising
Laravel Validation extension for PHPStan
9 10,054

mfn/phpstan-lost-in-translation

Solid choice
Helps find missing translation strings in Laravel applications
1 9,642

adrum/inertia-phpstan

Use with care
PHPStan extension to validate Inertia.js page existence on disk
8 7,570

jaydeep/laravel-guarddog

Solid choice
Laravel GuardDog — Scan your Laravel project for common security vulnerabilities and generate beautiful HTML reports.
7 5,418

laramint/laravel-security-scanner

Promising
Laravel-aware security rules for php-security-scanner. Detects Laravel SQL injection (DB::raw, whereRaw), mass assignment, debug/dd leaks, unsafe validators, CSRF bypass, insecure cookies, env exposure, Blade raw echo, open redirect, Http SSRF, Storage/File path traversal, file-upload validation gaps, Auth/Crypt/Artisan/Process/Config injection, view-name injection, session fixation, and Mail header injection.
3 5,059

jaydeep/laravel-preflight

Promising
Artisan command that scans your Laravel codebase for breaking changes and compatibility issues before you upgrade to Laravel 9, 10, 11, 12, or 13.
6 4,885

happenv-com/laravel-true-modular-phpstan

Solid choice
PHPStan extensions for laravel-true-modular: dynamic Eloquent relation resolution and module boundary enforcement.
4,858

odinns/phpstan-pest-this

Solid choice
PHPStan extensions to infer Pest closure $this type from test file mappings.
1 4,658

sajjadhossainshohag/laravel-artican

Promising
Code Health Checker for Laravel — catch broken routes, missing views, schema mismatches, and runtime errors before deployment.
16 2,918

nth-root/phpstan-security

Use with care
A PHPStan extension that checks your code for security vulnerabilities
5 2,790

hosmelq/php-coding-standard

Use with care
Opinionated ECS, Rector, and PHPStan presets for PHP and Laravel packages and applications.
1 2,606

bnomei/scip-laravel

Promising
Laravel-aware SCIP index generation for Laravel applications.
2,452

edalzell/dead-code-detector-laravel

Use with care
PHPStan extensions teaching shipmonk/dead-code-detector about Eloquent trait hooks and #[Scope] attributes
2,313

laramago/laramago

Promising
Laravel compatibility preset and runner for Mago static analysis.
19 2,268

heyosseus/difflock

Solid choice
Diff, analyze and protect your Laravel database schema. Schema diffing, migration risk linting, and a migration guard that blocks destructive changes before they run.
18 2,147

baer-software/larabeacon

Solid choice
Production readiness, performance, security, and reliability checks for Laravel applications.
4 1,900

baspa/larascan

Promising
A security-focused static analysis package for Laravel applications
8 1,847

squeak/rat

Use with care
squeak/rat — squeak-rat: Laravel Application Security & Behavior Analyzer. Terminal forensic tool for Laravel. 🐀 RAT follows the trail.
17 1,474

cosmira/soda

Use with care
Keep your PHP code clean and maintainable by enforcing quality rules based on metrics
2 1,256

kha333n/laravel-code-graph

Promising
A persistent code graph for Laravel projects. Indexes your codebase into a local SQLite graph and exposes it to AI assistants over MCP, so they get token-efficient, structurally accurate context instead of re-reading files.
1,096

artflow-studio/laravel-security

Use with care
Laravel package that scans applications (including Livewire) for security vulnerabilities, reports issues with severity levels, and provides remediation guidance and optional automated fixes.
1,065