PHPackages                             marartner/psalm-no-empty - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. marartner/psalm-no-empty

ActivePsalm-plugin[Testing &amp; Quality](/categories/testing)

marartner/psalm-no-empty
========================

Do not allow usage of empty()

v3.0(7mo ago)4179.0k↓28.6%1MITPHP

Since Mar 11Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/marartner/psalm-no-empty)[ Packagist](https://packagist.org/packages/marartner/psalm-no-empty)[ RSS](/packages/marartner-psalm-no-empty/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

No Empty
========

[](#no-empty)

[![Packagist Version](https://camo.githubusercontent.com/ced7fbe2e35c23c25f15ddb097df4b53e6bd66eb9ea6878acd769b0a178c3551/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61726172746e65722f7073616c6d2d6e6f2d656d7074793f7374796c653d666f722d7468652d6261646765266c6162656c3d737461626c65)](//packagist.org/packages/marartner/psalm-no-empty)[![Total Downloads](https://camo.githubusercontent.com/64542306f7780adf543e1c841ee5287bea8fd51a0ec93411f6f3e5ea3cc3b083/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61726172746e65722f7073616c6d2d6e6f2d656d7074793f7374796c653d666f722d7468652d6261646765)](//packagist.org/packages/marartner/psalm-no-empty)[![Downloads per month](https://camo.githubusercontent.com/3a6b99f6770024b4b037e436a0204d64eadf63b1ef2c2fb3f354c00cf0efa176/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6d61726172746e65722f7073616c6d2d6e6f2d656d7074793f7374796c653d666f722d7468652d6261646765)](//packagist.org/packages/marartner/psalm-no-empty)[![License](https://camo.githubusercontent.com/9d6a08309a8e4be4e56f1db7362a99f6b1901163eb89560b7b5d242455323fa8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d61726172746e65722f7073616c6d2d6e6f2d656d7074793f7374796c653d666f722d7468652d6261646765)](//packagist.org/packages/marartner/psalm-no-empty)

Psalm plugin to detect usage of empty().

Install
-------

[](#install)

```
composer require marartner/psalm-no-empty --dev
```

Use
---

[](#use)

To enable

```
psalm-plugin enable marartner/psalm-no-empty
```

To disable

```
psalm-plugin disable marartner/psalm-no-empty
```

See Psalms [documentation](https://psalm.dev/docs/running_psalm/plugins/using_plugins/#installing-plugins) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance62

Regular maintenance activity

Popularity35

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~416 days

Total

5

Last Release

231d ago

Major Versions

v1.1 → v2.02023-05-22

v2.0 → v3.02025-09-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/40a73337cea174c3b45114a9a3399b10f7eba354be716a1b4c4977128790e05a?d=identicon)[martner](/maintainers/martner)

---

Top Contributors

[![marartner](https://avatars.githubusercontent.com/u/4750837?v=4)](https://github.com/marartner "marartner (8 commits)")[![jack-worman](https://avatars.githubusercontent.com/u/66142217?v=4)](https://github.com/jack-worman "jack-worman (1 commits)")

### Embed Badge

![Health badge](/badges/marartner-psalm-no-empty/health.svg)

```
[![Health](https://phpackages.com/badges/marartner-psalm-no-empty/health.svg)](https://phpackages.com/packages/marartner-psalm-no-empty)
```

###  Alternatives

[psalm/plugin-phpunit

Psalm plugin for PHPUnit

7622.9M1.1k](/packages/psalm-plugin-phpunit)[roave/infection-static-analysis-plugin

Static analysis on top of mutation testing - prevents escaped mutants from being invalid according to static analysis

1314.2M265](/packages/roave-infection-static-analysis-plugin)[psalm/plugin-mockery

Psalm plugin for Mockery

102.6M53](/packages/psalm-plugin-mockery)

PHPackages © 2026

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