# doctrine/instantiator

Repository: https://github.com/doctrine/instantiator
Canonical: https://ross.abutalabs.com/products/instantiator
Homepage: https://www.doctrine-project.org/projects/instantiator.html
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-06-19T19:00:41+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 33, longevity 100
- inputs: {"age_days": 4409, "days_push": 75, "days_rel": 239, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10988, forks 63 (observed 2026-08-28T04:10:44.975285+00:00)

## What it is
A small, lightweight PHP library that creates new instances of any class without invoking its constructor or any of the class's own API. It is maintained under the Doctrine project and widely used as a dependency by testing and ORM tooling.

## Use cases
- instantiate a PHP class without calling its constructor
- create object instances for unit tests without triggering side effects
- hydrate entities bypassing constructor logic
- create mock or fixture objects without constructor dependencies
- deserialize objects without running constructors

## When to choose
- you need to create instances of classes whose constructors have required dependencies or side effects
- you are building testing tools, mocks, or hydrators in PHP
- you need a tiny, battle-tested utility with huge community adoption

## When to avoid
- you want normal object construction with constructor logic executed
- you are not working in PHP
- you need serialization or property population, not just bare instantiation

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools
- domain: developer-tools, programming-languages
- platform: php
- tags: object-instantiation, reflection, constructor-bypass, doctrine, testing-utility

## Member repositories
- doctrine/instantiator (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:44.975285+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:17:15.062363+00:00, confidence not recorded.
  - readme: https://github.com/doctrine/instantiator (fetched 2026-08-28T04:10:44.975285+00:00, sha c263bb435355)
  - homepage: https://www.doctrine-project.org/projects/instantiator.html (fetched 2026-08-29T08:15:52.041380+00:00, sha 22e7d9d7a37c)
  - site_page: https://www.doctrine-project.org/projects/doctrine-instantiator/en/2.1/index.html (fetched 2026-08-29T08:15:52.050995+00:00, sha 033b39e71ae8)
  - site_page: https://www.doctrine-project.org/projects/doctrine-instantiator/en/2.2/index.html (fetched 2026-08-29T08:15:52.052813+00:00, sha 12694e8fb39c)
  - site_page: https://www.doctrine-project.org/projects/doctrine-instantiator/en/2.0/index.html (fetched 2026-08-29T08:15:52.054380+00:00, sha 84976779cf4d)
  - site_page: https://www.doctrine-project.org/projects/doctrine-instantiator/en/1.5/index.html (fetched 2026-08-29T08:15:52.055933+00:00, sha 0cf691e2438d)
  - site_page: https://www.doctrine-project.org/projects/doctrine-instantiator/en/1.4/index.html (fetched 2026-08-29T08:15:52.057486+00:00, sha 7591c7f69d89)
  - site_page: https://www.doctrine-project.org/projects/doctrine-instantiator/en/1.3/index.html (fetched 2026-08-29T08:15:52.059057+00:00, sha e0e7966f76b1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
