PHPackages                             narration/phpstan-rules - 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. narration/phpstan-rules

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

narration/phpstan-rules
=======================

The Narration opinionated set of rules for PHPStan

11.1k

Since Feb 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/narration/phpstan-rules)[ Packagist](https://packagist.org/packages/narration/phpstan-rules)[ RSS](/packages/narration-phpstan-rules/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [![Skeleton example](https://raw.githubusercontent.com/nunomaduro/skeleton-php/master/docs/example.png)](https://raw.githubusercontent.com/nunomaduro/skeleton-php/master/docs/example.png)

 [![Build Status](https://camo.githubusercontent.com/d63f40488bd0dcb2fb1ef21b3ea48183e3113767d4cbf39a5f73917f7faff0fb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e756e6f6d616475726f2f736b656c65746f6e2d7068702f6d61737465722e737667)](https://travis-ci.org/nunomaduro/skeleton-php) [![Quality Score](https://camo.githubusercontent.com/b7c30937a0e089033d1fc78800ca1006d9a04bac1597547e5df90b4f69e89b2c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e756e6f6d616475726f2f736b656c65746f6e2d7068702e737667)](https://scrutinizer-ci.com/g/nunomaduro/skeleton-php) [![Coverage](https://camo.githubusercontent.com/92fb11d73b343f7abe6279b4a143f4b69b9f6862e8b2493b4ea3de4cb5f670cf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e756e6f6d616475726f2f736b656c65746f6e2d7068702e737667)](https://scrutinizer-ci.com/g/nunomaduro/skeleton-php) [![Total Downloads](https://camo.githubusercontent.com/dd82aad99f253787131c71a1de7ad55f331791f58d54eae643a86277fa963e2c/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f736b656c65746f6e2d7068702f642f746f74616c2e737667)](https://packagist.org/packages/nunomaduro/skeleton-php) [![Latest Version](https://camo.githubusercontent.com/3c669169e252fb928d2c6c04f81d61e05fb49d8e63a6e1f41a7ec56907f06d30/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f736b656c65746f6e2d7068702f762f737461626c652e737667)](https://packagist.org/packages/nunomaduro/skeleton-php) [![License](https://camo.githubusercontent.com/43b47f90666d74c674c5ef1dd7380752d6e51d65e555794ac7fdbe45e91817be/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f736b656c65746f6e2d7068702f6c6963656e73652e737667)](https://packagist.org/packages/nunomaduro/skeleton-php)

About skeleton-php
------------------

[](#about-skeleton-php)

skeleton-php was created by, and is maintained by [Nuno Maduro](https://github.com/nunomaduro), and is an skeleton for php packages.

Installation &amp; Usage
------------------------

[](#installation--usage)

> **Requires [PHP 7.1.3+](https://php.net/releases/)**

Create your package using [Composer](https://getcomposer.org):

```
composer create-project nunomaduro/skeleton-php --prefer-source PackageName
```

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

[](#contributing)

Thank you for considering to contribute to skeleton-php. All the contribution guidelines are mentioned [here](CONTRIBUTING.md).

You can have a look at the [CHANGELOG](CHANGELOG.md) for constant updates &amp; detailed information about the changes. You can also follow the twitter account for latest announcements or just come say hi!: [@enunomaduro](https://twitter.com/enunomaduro)

Support the development
-----------------------

[](#support-the-development)

**Do you like this project? Support it by donating**

- PayPal: [Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L)
- Patreon: [Donate](https://www.patreon.com/nunomaduro)

License
-------

[](#license)

skeleton-php is an open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/86cfef5c1f5195df1a9db17a5f8ecb34455e1f0133a725de9acf7f2fb26ac6a1?d=identicon)[nunomaduro](/maintainers/nunomaduro)

---

Top Contributors

[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (6 commits)")

### Embed Badge

![Health badge](/badges/narration-phpstan-rules/health.svg)

```
[![Health](https://phpackages.com/badges/narration-phpstan-rules/health.svg)](https://phpackages.com/packages/narration-phpstan-rules)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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