About Psalm
Psalm is a static analysis tool for PHP applications. It looks for errors and security vulnerabilities in code without running it, and the project lists taint analysis and type inference among its topics. The homepage says it helps maintain codebases large and small, old and new, and that on its strictest setting it can prevent almost all type-related runtime errors.
Finding problems is only half of it. A companion tool called Psalter fixes code, run either as vendor/bin/psalter or through vendor/bin/psalm with the --alter flag. It handles issues such as missing or invalid return types, and offers safety options: a --dry-run preview, a --php-version target so typehints suit older PHP, a --safe-types mode and a switch that blocks backwards-incompatible changes. Custom manipulation plugins are supported.
Psalm is MIT licensed and was built by Matt Brown at Vimeo. Daniil Gentili is the only active maintainer and offers paid support contracts covering integration into existing codebases, help with Psalm issues and development of extra features. The website has an installation guide, documentation and a live demo.
Key features
- Identifies problems in PHP code
- Strict mode targets type-related runtime errors
- Psalter helps fix reported issues
- Dry run previews changes
- Targets a chosen PHP version
- Safe-types mode
- Custom manipulation plugins
- Live demo on the website
Good fit for
- Catching type errors in a PHP codebase
- Finding security issues through taint analysis
- Adding missing return types across an older project
Psalm: questions and answers
- What is Psalm used for?
- Psalm is a free, open-source static analysis tool that finds type errors and security vulnerabilities in PHP code and can fix some issues automatically. It is a good fit for catching type errors in a PHP codebase, finding security issues through taint analysis and adding missing return types across an older project.
- Is Psalm open source?
- Yes. Psalm is open source under the MIT licence. Its source code is on GitHub at vimeo/psalm and is written mainly in PHP.
- Is Psalm free?
- Yes. Psalm is open source, so the software itself is free to use.
- Can I self-host Psalm?
- Yes. Psalm can be self-hosted on your own server or infrastructure.
- What is Psalm an alternative to?
- Psalm is an open-source alternative to Codacy. Other open-source alternatives to Codacy include Semgrep, SonarQube and ESLint.
- Is Psalm actively maintained?
- Yes. The most recent commit to Psalm was on 22 November 2026, and the latest release is 7.15.0, published on 21 November 2026. The project has 5.9k stars on GitHub, with 36 added in the last 30 days.
Open-source alternatives to Psalm
See all
Semgrep
Security
Lightweight static analysis for many languages. Find bug variants with patterns that look
LGPL-2.1vs Snyk★ 18k
SonarQube
Developer Tools
Continuous Inspection
LGPL-3.0vs Codacy★ 11k
ESLint
Open source
Find and fix problems in your JavaScript code.
MITvs SonarQube Cloud★ 28k
MISP
Security
MISP (core software) - Open Source Threat Intelligence and Sharing Platform
AGPL-3.0vs Recorded Future★ 6.7k
KICS
Security
Find security vulnerabilities, compliance issues, and infrastructure misconfigurations ear
Apache-2.0vs GitGuardian★ 2.8k
Horusec
Security
Horusec is an open source tool that improves identification of vulnerabilities in your pro
Apache-2.0vs Checkmarx★ 1.3k
SaaS alternatives to Psalm
See all
Codacy
Developer Tools
Automated code quality and security analysis for pull requests
SaaS
VibeDoctor
Security
Runs 129+ deterministic checks on a GitHub repo for security, leaked secrets, performance and dependency health
SaaS
ShipShield
Security
Security engine that checks a codebase against known vulnerability signatures and delivers an audit with AI fixes
SaaS
Ontoly Cloud
Developer Tools
Verifies AI-generated code for architecture, security, dependencies and deployment readiness using a Software Graph
SaaS
AuditYourApp
Security
Scans Supabase projects, websites and mobile apps for exposed RLS rules, open RPCs and leaked API keys
SaaS
SupaExplorer
Security
Scans a URL for exposed Supabase credentials, lets you browse tables as an attacker would and suggests AI fixes
SaaS

