# Psalm Laravel plugin

> Laravel static analysis and taint-based security scanning for Psalm

Source: https://talira.ai/catalog/psalm-laravel-plugin-4q24xcnp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / type checking](https://talira.ai/categories/developer-tools/type-checking), [security / static analysis](https://talira.ai/categories/security/static-analysis), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Psalm](https://talira.ai/orgs/psalm.md)

The Psalm Laravel plugin adds Laravel-aware static analysis to [Psalm](https://talira.ai/catalog/psalm-fwm4fe8q.md), with taint analysis that traces user input from request to sink to find SQL injection, XSS, shell injection, file traversal, SSRF, open redirects, timing-unsafe secret comparisons and prompt injection in laravel/ai agents. It boots the [Laravel](https://talira.ai/catalog/laravel-4d4w140j.md) application to resolve facades, config and Eloquent model metadata, adds 13 Laravel-specific checks, can analyse Blade templates, and writes a GitHub Actions workflow that uploads findings to GitHub Code Scanning. Everything runs in your own project and CI. It's maintained in the psalm GitHub organization, separate from Psalm itself.

## Links

- GitHub: https://github.com/psalm/psalm-plugin-laravel

## Problems it solves

- find SQL injection and XSS in a Laravel app before it ships
- run static analysis that understands Laravel facades and Eloquent models
- add security scanning of a Laravel codebase to CI without a paid tool

## Features

- Taint analysis from Laravel request input to SQL, HTML, shell, file, HTTP and redirect sinks
- 13 Laravel-aware checks such as undefined model relations and unknown model attributes
- Opt-in analysis of Blade templates
- Boots the Laravel app to resolve facades, config and Eloquent models
- Generates a GitHub Actions workflow that uploads findings to Code Scanning
- Runs locally and in CI with no account or cloud upload

## Limitations

- Version 4.x needs PHP 8.2+, Laravel 12 or 13 and Psalm 7; Laravel 11 needs the 3.x line[^1]
- A run executes the project's own PHP (config, service providers and container bindings), so it shouldn't be run on an untrusted checkout outside a sandbox[^1]

## Trust

Overall: 0.58 out of 1.
Signals: maintenance 1.00, adoption 0.51, momentum 0.20, community 0.67, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 538 commits in the last 90 days
- latest release v4.24.0 3 days ago
- 351 GitHub stars
- 47 contributors
- accepts sponsorship (Github)
- backed by Psalm

## Related

- Works with [Psalm](https://talira.ai/catalog/psalm-fwm4fe8q.md)
- Works with [Laravel](https://talira.ai/catalog/laravel-4d4w140j.md)

## Alternatives

- [Larastan](https://talira.ai/catalog/larastan-gxbmk034.md): Adds code analysis to Laravel, improving developer productivity and code quality
- [PHPStan](https://talira.ai/catalog/phpstan-5dffx9mn.md): PHP static analysis that finds bugs without running your code
- [Psalm](https://talira.ai/catalog/psalm-fwm4fe8q.md): Free and open source static analysis tool for finding errors in PHP code

## Sources

[^1]: https://github.com/psalm/psalm-plugin-laravel (checked 28 Nov 2026)
[^2]: https://github.com/psalm/psalm-plugin-laravel/blob/4.x/LICENSE (checked 28 Nov 2026)
