PHPackages                             ferror/phpstan-braintree - 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. ferror/phpstan-braintree

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

ferror/phpstan-braintree
========================

PHPStan extension for Braintree SDK

08.7k↓50%PHP

Since Dec 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Ferror/phpstan-braintree)[ Packagist](https://packagist.org/packages/ferror/phpstan-braintree)[ RSS](/packages/ferror-phpstan-braintree/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://github.com/ferror/phpstan-braintree/actions/workflows/ci.yaml/badge.svg)](https://github.com/ferror/phpstan-braintree/actions/workflows/ci.yaml)[![Latest Stable Version](https://camo.githubusercontent.com/8821afc6c6f0e8130ebb4fc63af4a317fe0cf6f3aaacf1549687b829fc775115/68747470733a2f2f706f7365722e707567782e6f72672f666572726f722f7068707374616e2d627261696e747265652f76)](https://packagist.org/packages/ferror/phpstan-braintree)[![Total Downloads](https://camo.githubusercontent.com/da65f0cc693d51719ae866acfb3f95de5e4c0119dfb19a96ea0574e0888f0547/68747470733a2f2f706f7365722e707567782e6f72672f666572726f722f7068707374616e2d627261696e747265652f646f776e6c6f616473)](https://packagist.org/packages/ferror/phpstan-braintree)[![License](https://camo.githubusercontent.com/95006db838cac601be9e08c402e9649edd5f7895ac243c68ac88bbad37c8ac7e/68747470733a2f2f706f7365722e707567782e6f72672f666572726f722f7068707374616e2d627261696e747265652f6c6963656e7365)](https://packagist.org/packages/ferror/phpstan-braintree)

PHPStan for Braintree SDK
=========================

[](#phpstan-for-braintree-sdk)

Story
-----

[](#story)

The first author of phpstan-braintree extension is Matěj [Finwe](https://github.com/finwe) Humpál who started creating this extension, but the last commit is from 2017. Now it's been a couple of years and my company [Landingi](https://github.com/Landingi) is using the Braintree PHP SDK, that's why I decided to fork the solution and improve it by creating more classes reflection.

Requirements
------------

[](#requirements)

- PHP 8.0 and above
- braintree/braintree\_php 6.5 and above
- PHPStan 1.2 and above

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

[](#installation)

```
composer require --dev ferror/phpstan-braintree
```

```
extensions:
    - vendor/ferror/phpstan-braintree/extension.neon
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

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/859d0bbd1ef0d0772cf6c515be1510752ba68743d03e84435ee7b2e6117a08f2?d=identicon)[Ferror](/maintainers/Ferror)

---

Top Contributors

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

---

Tags

braintree-sdkphpphpstanphpstan-extension

### Embed Badge

![Health badge](/badges/ferror-phpstan-braintree/health.svg)

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

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