PHPackages                             mpyw/privator - 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. mpyw/privator

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

mpyw/privator
=============

Utils for testing private methods and properties on PHP 7.0+

v3.0.0(4y ago)34767MITPHPPHP ^7.0 || ^8.0

Since Mar 1Pushed 3y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (7)

Privator [![Build Status](https://github.com/mpyw/privator/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/mpyw/privator/actions) [![Coverage Status](https://camo.githubusercontent.com/b61c8a2f68b3d5ee030c64cad658729d1052318a84c104507af8dc8ab80d9265/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d7079772f7072697661746f722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mpyw/privator?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/9b23eb5e7ad3853d457b892ee498174a32ff3caf502b9b0bacb4bb611d140aaf/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d7079772f7072697661746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mpyw/privator/?branch=master)
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#privator---)

Utils for testing private methods and properties.

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

[](#requirements)

- PHP: `^7.0 || ^8.0`

Installing
----------

[](#installing)

```
composer require mpyw/privator --dev
```

Usage
-----

[](#usage)

See tests.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity70

Established project with proven stability

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

Total

3

Last Release

1789d ago

Major Versions

v1.0.0 → v2.0.02016-06-29

v2.0.0 → v3.0.02021-06-24

PHP version history (2 changes)v1.0.0PHP &gt;=7.0.0

v3.0.0PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1351893?v=4)[mpyw](/maintainers/mpyw)[@mpyw](https://github.com/mpyw)

---

Top Contributors

[![mpyw](https://avatars.githubusercontent.com/u/1351893?v=4)](https://github.com/mpyw "mpyw (43 commits)")

---

Tags

phpprivatetesttestprivate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mpyw-privator/health.svg)

```
[![Health](https://phpackages.com/badges/mpyw-privator/health.svg)](https://phpackages.com/packages/mpyw-privator)
```

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[hamcrest/hamcrest-php

This is the PHP port of Hamcrest Matchers

7.0k484.1M109](/packages/hamcrest-hamcrest-php)[nelmio/alice

Expressive fixtures generator

2.5k43.4M133](/packages/nelmio-alice)[zenstruck/foundry

A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.

78611.9M97](/packages/zenstruck-foundry)[php-mock/php-mock

PHP-Mock can mock built-in PHP functions (e.g. time()). PHP-Mock relies on PHP's namespace fallback policy. No further extension is needed.

36918.1M98](/packages/php-mock-php-mock)[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

33812.5M350](/packages/brain-monkey)

PHPackages © 2026

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