Psalm

Open source

Free, open-source static analysis tool that finds type errors and security vulnerabilities in PHP code and can fix some issues automatically.

Open-source alternative to

psalm.dev
Psalm homepage screenshot
GitHub stars
5.9k
Last 30 days
+36(+1%)
Last commit
today
Repository age
10 years
Version
7.15.0
Licence
MIT
Self-hosted
Yes

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
Built with
PHP tools
Tags
php
static-analysis
type-checking
security
taint-analysis
linter
developer-tools

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

SaaS alternatives to Psalm

See all