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

ActiveLibrary

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

A simple PHPStan extension for Safe PHP functions

0.2.0(6mo ago)12.2k↓43.8%Apache-2.0PHP

Since Mar 25Pushed 6mo 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 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)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

35

—

LowBetter than 80% of packages

Maintenance67

Regular maintenance activity

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

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 ~294 days

Total

3

Last Release

195d 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 (7 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.4k43.5M5.2k](/packages/larastan-larastan)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

78768.9M1.5k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

66766.6M1.1k](/packages/phpstan-phpstan-doctrine)[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.

33320.0M375](/packages/spaze-phpstan-disallowed-calls)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)

PHPackages © 2026

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