PHPackages                             deuteros-php/deuteros - 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. deuteros-php/deuteros

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

deuteros-php/deuteros
=====================

Drupal Entity Unit Test Extensible Replacement Object Scaffolding - Value-object entity doubles for unit testing

67.4k↓30.3%4PHPCI passing

Since Mar 26Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/deuteros-php/deuteros)[ Packagist](https://packagist.org/packages/deuteros-php/deuteros)[ RSS](/packages/deuteros-php-deuteros/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Deuteros
========

[](#deuteros)

[![CI](https://github.com/deuteros-php/deuteros/actions/workflows/ci.yml/badge.svg)](https://github.com/deuteros-php/deuteros/actions/workflows/ci.yml)

> δεύτερος • (deúteros): second of two

– [Wikitionary](https://en.wiktionary.org/wiki/%CE%B4%CE%B5%CF%8D%CF%84%CE%B5%CF%81%CE%BF%CF%82)

A PHP library providing value-object entity doubles for Drupal unit testing, allowing you to test code that depends on entity/field interfaces without Kernel tests, module enablement, database access, or service container.

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

[](#installation)

```
composer require --dev deuteros-php/deuteros
```

Documentation
-------------

[](#documentation)

See [docs/](docs/) for full documentation:

- [Usage Guide](docs/USAGE.md) - Getting started, API reference, and examples
- [Architecture](docs/ARCHITECTURE.md) - For contributors and maintainers

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

[](#requirements)

- PHP 8.3+
- Drupal 10.x or 11.x
- PHPUnit 9.0+/10.0+/11.0+ or Prophecy 1.15+

License
-------

[](#license)

[GPL-2.0 license](LICENSE)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance54

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 81.5% 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://avatars.githubusercontent.com/u/681465?v=4)[plach](/maintainers/plach)[@plach](https://github.com/plach)

---

Top Contributors

[![plach79](https://avatars.githubusercontent.com/u/6555396?v=4)](https://github.com/plach79 "plach79 (22 commits)")[![sbt99](https://avatars.githubusercontent.com/u/95087853?v=4)](https://github.com/sbt99 "sbt99 (3 commits)")[![alecsmrekar](https://avatars.githubusercontent.com/u/20174058?v=4)](https://github.com/alecsmrekar "alecsmrekar (1 commits)")[![gabesullice](https://avatars.githubusercontent.com/u/4500265?v=4)](https://github.com/gabesullice "gabesullice (1 commits)")

---

Tags

drupalentitytesting-toolsunit-testing

### Embed Badge

![Health badge](/badges/deuteros-php-deuteros/health.svg)

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

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M360](/packages/dms-phpunit-arraysubset-asserts)

PHPackages © 2026

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