PHPackages                             erikgaal/phpstan-psl-rule - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. erikgaal/phpstan-psl-rule

ActivePhpstan-extension[Utility &amp; Helpers](/categories/utility)

erikgaal/phpstan-psl-rule
=========================

PHPStan rules to suggest azziez/psl replacements for native functions

01[4 PRs](https://github.com/erikgaal/phpstan-psl-rule/pulls)PHPCI passing

Since Oct 13Pushed 1mo agoCompare

[ Source](https://github.com/erikgaal/phpstan-psl-rule)[ Packagist](https://packagist.org/packages/erikgaal/phpstan-psl-rule)[ RSS](/packages/erikgaal-phpstan-psl-rule/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

PHPStan rules to suggest azziez/psl replacements for native features
====================================================================

[](#phpstan-rules-to-suggest-azziezpsl-replacements-for-native-features)

[![Latest Version on Packagist](https://camo.githubusercontent.com/21fa82d26504a62bcb446b99b831f2fccd39a3bf83ea08a3b4fcc74913cd9d95/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6572696b6761616c2f7068707374616e2d70736c2d73756767657374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erikgaal/phpstan-psl-suggestions)[![Tests](https://camo.githubusercontent.com/69fc98b87a9b538816faf97a70eadae440e601bbc3120a5c12af847b409ace10/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6572696b6761616c2f7068707374616e2d70736c2d73756767657374696f6e732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/erikgaal/phpstan-psl-suggestions/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/6640c518b9abb01b52d3cb0a696f8a028fef508d3f9229978e6cd1bf2d148969/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6572696b6761616c2f7068707374616e2d70736c2d73756767657374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erikgaal/phpstan-psl-suggestions)

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/1edc7541893168bdba65c6bda4dafb3c5975e17d635a9ccee9cb1bb4916477ef/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f7068707374616e2d70736c2d73756767657374696f6e732e6a70673f743d31)](https://spatie.be/github-ad-click/phpstan-psl-suggestions)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require erikgaal/phpstan-psl-suggestions
```

Usage
-----

[](#usage)

```
$skeleton = new ErikGaal\PhpstanPslRule();
echo $skeleton->echoPhrase('Hello, ErikGaal!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Erik Gaal](https://github.com/erikgaal)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance61

Regular maintenance activity

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 71.4% 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.

### Community

Maintainers

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

---

Top Contributors

[![erikgaal](https://avatars.githubusercontent.com/u/1234268?v=4)](https://github.com/erikgaal "erikgaal (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

### Embed Badge

![Health badge](/badges/erikgaal-phpstan-psl-rule/health.svg)

```
[![Health](https://phpackages.com/badges/erikgaal-phpstan-psl-rule/health.svg)](https://phpackages.com/packages/erikgaal-phpstan-psl-rule)
```

PHPackages © 2026

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