PHPackages                             open-sdk/framework-phpstan - 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. open-sdk/framework-phpstan

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

open-sdk/framework-phpstan
==========================

Open SDK extensions for PHPStan

0.1.0(8y ago)02.1k1MITPHPPHP ^7.1

Since Jan 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/open-sdk/framework-phpstan)[ Packagist](https://packagist.org/packages/open-sdk/framework-phpstan)[ Docs](https://github.com/open-sdk/framework-phpstan)[ RSS](/packages/open-sdk-framework-phpstan/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (1)

Framework PHPStan extension - Open SDK
======================================

[](#framework-phpstan-extension---open-sdk)

[![Latest Release](https://camo.githubusercontent.com/4cf1b8825e0fd8a4e2b2b3a1f0a144fd56810af7a08780662151166978c6b955/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f70656e2d73646b2f6672616d65776f726b2d7068707374616e2f616c6c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/open-sdk/framework-phpstan/releases)[![Build Status](https://camo.githubusercontent.com/dbaa51591ca9f9052a636937d55560d3292c678a58e5cfbd4e12afd285bd4569/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f70656e2d73646b2f6672616d65776f726b2d7068707374616e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/open-sdk/framework-phpstan)[![Total Downloads](https://camo.githubusercontent.com/dffc7a5e39d56fe5f50651dd77b49b04531b3a8485627b5239bbd49378db4489/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f70656e2d73646b2f6672616d65776f726b2d7068707374616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/open-sdk/framework-phpstan)

This package provides some extensions of the [Open SDK framework](https://github.com/open-sdk/framework) for [PHPStan](https://github.com/phpstan/phpstan) to improve the overall developer's experience.

Features
--------

[](#features)

- Dynamic type for [OpenSdk\\Resource\\Manager::asModel()](#dynamic-type-resource-managers-asmodel)

### Dynamic type: resource manager's `asModel`

[](#dynamic-type-resource-managers-asmodel)

`OpenSdk\Resource\Manager::asModel()` returns the response value, wrapped in a resource model. The model instance can either be the default model type or a custom subclass.

Usage
-----

[](#usage)

To use this extension for [PHPStan](https://github.com/phpstan/phpstan) add it to the requirements within [Composer](https://github.com/composer/composer).

```
$ composer require --dev open-sdk/framework-phpstan
```

And add it to the [PHPStan](https://github.com/phpstan/phpstan) configuration.

```
includes:
	- vendor/open-sdk/framework-phpstan/extension.neon

```

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3136d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f4ce064b5be71889d8571b5e3f9ef66a3c3cace0361966690abd00930b5be7d?d=identicon)[byCedric](/maintainers/byCedric)

---

Top Contributors

[![byCedric](https://avatars.githubusercontent.com/u/1203991?v=4)](https://github.com/byCedric "byCedric (9 commits)")

---

Tags

PHPStanopen-sdk

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/open-sdk-framework-phpstan/health.svg)

```
[![Health](https://phpackages.com/badges/open-sdk-framework-phpstan/health.svg)](https://phpackages.com/packages/open-sdk-framework-phpstan)
```

###  Alternatives

[larastan/larastan

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

6.5k60.6M10.4k](/packages/larastan-larastan)[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)[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)[staabm/phpstan-dba

2962.6M2](/packages/staabm-phpstan-dba)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2023.2M367](/packages/drupal-core-dev)

PHPackages © 2026

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