PHPackages                             zonuexe/phpstan-safephp-lite - 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. zonuexe/phpstan-safephp-lite

ActiveLibrary[Testing &amp; Quality](/categories/testing)

zonuexe/phpstan-safephp-lite
============================

A simple PHPStan extension for Safe PHP functions

v0.3.0(2mo ago)19.1k↑22.7%Apache-2.0PHP

Since Mar 25Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/zonuexe/phpstan-safephp-lite)[ Packagist](https://packagist.org/packages/zonuexe/phpstan-safephp-lite)[ RSS](/packages/zonuexe-phpstan-safephp-lite/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (8)Versions (5)Used By (0)

phpstan-safephp-lite
====================

[](#phpstan-safephp-lite)

A simple PHPStan extension for Safe PHP([thecodingmachine/safe](https://github.com/thecodingmachine/safe)) functions.

What is the difference from phpstan-safe-rule?
----------------------------------------------

[](#what-is-the-difference-from-phpstan-safe-rule)

[thecodingmachine/phpstan-safe-rule](https://github.com/thecodingmachine/phpstan-safe-rule), maintained by the developers of Safe PHP, contains rules that recommend replacing built-in functions with Safe, but it hasn't been updated in a while.

This package only provides typing for Safe functions, which wraps the DynamicReturnType extension shipped with PHPStan. If you update PHPStan in the future, the Safe function typing will automatically be improved.

Copyright
---------

[](#copyright)

This package is released under the Apache License 2.0.

```
Copyright 2024 USAMI Kenta

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance84

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~264 days

Total

4

Last Release

83d ago

### Community

Maintainers

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

---

Top Contributors

[![zonuexe](https://avatars.githubusercontent.com/u/822086?v=4)](https://github.com/zonuexe "zonuexe (8 commits)")

###  Code Quality

TestsPHPUnit

Code StyleECS

### Embed Badge

![Health badge](/badges/zonuexe-phpstan-safephp-lite/health.svg)

```
[![Health](https://phpackages.com/badges/zonuexe-phpstan-safephp-lite/health.svg)](https://phpackages.com/packages/zonuexe-phpstan-safephp-lite)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k60.6M10.5k](/packages/larastan-larastan)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67475.0M1.6k](/packages/phpstan-phpstan-doctrine)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79378.2M2.5k](/packages/phpstan-phpstan-symfony)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

5014.2M111](/packages/shipmonk-dead-code-detector)[spaze/phpstan-disallowed-calls

PHPStan rules to detect disallowed method &amp; function calls, constant, namespace, attribute, property &amp; superglobal usages, with powerful rules to re-allow a call or a usage in places where it should be allowed.

33923.4M633](/packages/spaze-phpstan-disallowed-calls)[mglaman/phpstan-drupal

Drupal extension and rules for PHPStan

20832.2M213](/packages/mglaman-phpstan-drupal)

PHPackages © 2026

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