PHPackages                             hectorj/safe-php-psalm-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. hectorj/safe-php-psalm-plugin

ActivePsalm-plugin[Validation &amp; Sanitization](/categories/validation)

hectorj/safe-php-psalm-plugin
=============================

vimeo/psalm plugin for thecodingmachine/safe

v1.4.0(3y ago)9102.7k31MITPHPPHP ^7.4 || ^8.0CI failing

Since Mar 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hectorj/safe-php-psalm-plugin)[ Packagist](https://packagist.org/packages/hectorj/safe-php-psalm-plugin)[ RSS](/packages/hectorj-safe-php-psalm-plugin/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)Dependencies (3)Versions (7)Used By (1)

hectorj/safe-php-psalm-plugin
=============================

[](#hectorjsafe-php-psalm-plugin)

This is a [vimeo/psalm](https://github.com/vimeo/psalm) plugin for [thecodingmachine/safe](https://github.com/thecodingmachine/safe).

It applies some Psalm's core functions stubs to their safe versions.

Not all functions `thecodingmachine/safe` are supported yet. If you have a specific need, don't hesitate to open an issue or a PR.

Installation
------------

[](#installation)

```
composer require --dev hectorj/safe-php-psalm-plugin

```

And add the plugin to your `psalm.xml`:

```

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 56.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~195 days

Total

5

Last Release

1458d ago

PHP version history (2 changes)1.0.0PHP ^7.4

v1.3.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c660a19aa95483c2d459cc662b05794683c11542e7b838e6a7f6709267390a3e?d=identicon)[hectorj](/maintainers/hectorj)

---

Top Contributors

[![hectorj](https://avatars.githubusercontent.com/u/2427959?v=4)](https://github.com/hectorj "hectorj (13 commits)")[![simPod](https://avatars.githubusercontent.com/u/327717?v=4)](https://github.com/simPod "simPod (8 commits)")[![LeoVie](https://avatars.githubusercontent.com/u/7249788?v=4)](https://github.com/LeoVie "LeoVie (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hectorj-safe-php-psalm-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/hectorj-safe-php-psalm-plugin/health.svg)](https://phpackages.com/packages/hectorj-safe-php-psalm-plugin)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)[xemlock/htmlpurifier-html5

HTML5 support for HTML Purifier

1052.9M11](/packages/xemlock-htmlpurifier-html5)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
