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

63.2k—8.6%4PHPCI passing

Since Mar 26Pushed 1mo 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 1mo 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 59% of packages

Maintenance59

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity11

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

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[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)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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