PHPackages                             xificurk/phpstan-shim - 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. xificurk/phpstan-shim

Abandoned → [phpstan/phpstan](/?search=phpstan%2Fphpstan)ArchivedLibrary[Testing &amp; Quality](/categories/testing)

xificurk/phpstan-shim
=====================

PHPStan Phar distribution with bundled set of standard extensions

v0.11.8(6y ago)115.7kMITPHP ~7.1

Since Jul 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/xificurk/phpstan-shim)[ Packagist](https://packagist.org/packages/xificurk/phpstan-shim)[ RSS](/packages/xificurk-phpstan-shim/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)DependenciesVersions (23)Used By (0)

PHPStan shim
============

[](#phpstan-shim)

The prefixed `.phar` distribution of [PHPStan](https://github.com/phpstan/phpstan) is built using [phpstan-compiler](https://github.com/xificurk/phpstan-compiler)

Usage
-----

[](#usage)

Install the package

```
composer require --dev xificurk/phpstan-shim
```

and use it like the original executable

```
vendor/bin/phpstan.phar analyse src
```

Check out the main repo for more options

Configuration
-------------

[](#configuration)

It is recommended, that you set a `tmpDir` in your `phpstan.neon`, otherwise it uses the system temp directory.

```
parameters:
    tmpDir: var/cache/phpstan

```

Extensions
----------

[](#extensions)

Contrary to [phpstan/phpstan-shim](https://github.com/phpstan/phpstan-shim) this distribution contains several PHPStan extensions:

- [Dibi - Database Abstraction Library](https://github.com/phpstan/phpstan-dibi)
- [Doctrine](https://github.com/phpstan/phpstan-doctrine)
- [Nette Framework](https://github.com/phpstan/phpstan-nette)
- [PHPUnit](https://github.com/phpstan/phpstan-phpunit)
- [PHPStan rules for checked &amp; unchecked exceptions](https://github.com/pepakriz/phpstan-exception-rules)

You can enable them, by including their config with a `phar://phpstan.phar/` prefix.

```
includes:
	- phar://phpstan.phar/vendor/phpstan/phpstan-doctrine/extension.neon

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

22

Last Release

2383d ago

PHP version history (2 changes)v0.7.0PHP ~7.0

v0.10.0PHP ~7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b4780fe328102c4572737db639653c29d3081d1d3e051467f00d7f09a776399?d=identicon)[xificurk](/maintainers/xificurk)

---

Top Contributors

[![xificurk](https://avatars.githubusercontent.com/u/117465?v=4)](https://github.com/xificurk "xificurk (29 commits)")

### Embed Badge

![Health badge](/badges/xificurk-phpstan-shim/health.svg)

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

###  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)
