doctrine/instantiator
doctrine/instantiator has 10,980 GitHub stars and 65 forks. GitHot measured +2 stars in 24 hours. Last checked 2026-11-08 14:49 UTC. Last push 2026-10-18.
This library provides a way of avoiding usage of constructors when instantiating PHP classes.
Measured star growth
- in 24h
- +2
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalDoctrine Instantiator
This library provides a way of avoiding usage of constructors when instantiating PHP classes.
Installation
The suggested installation method is via composer:
composer require doctrine/instantiator
Usage
The instantiator is able to create new instances of any class without using the constructor or any API of the class itself:
$instantiator = new \Doctrine\Instantiator\Instantiator();
$instance = $instantiator->instantiate(\My\ClassName\Here::class);
Contributing
Please read the CONTRIBUTING.md contents if you wish to help out!
Credits
This library was migrated from ocramius/instantiator, which has been donated to the doctrine organization, and which is now deprecated in favour of this package.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,201 starspublic-apis/public-apis
A collective list of free APIs
497,416 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
445,262 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,229 stars
