PHPackages                             hjerichen/class-instantiator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hjerichen/class-instantiator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hjerichen/class-instantiator
============================

A factory for objects. Instantiates any class.

2.1.0(5mo ago)012.7k—5.6%1MITPHPPHP ^8.2CI passing

Since Feb 7Pushed 5mo ago1 watchersCompare

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

READMEChangelog (7)Dependencies (8)Versions (18)Used By (1)

[![Continuous Integration](https://github.com/hjerichen/class-instantiator/workflows/Continuous%20Integration/badge.svg?branch=master)](https://github.com/hjerichen/class-instantiator/actions)[![Coverage Status](https://camo.githubusercontent.com/dfdfa57a4810bfe9016db5454ee124b9eb34e728bbc620d0716685627ea26729/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f686a6572696368656e2f636c6173732d696e7374616e746961746f722f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/hjerichen/class-instantiator?branch=master)

Class Instantiator
==================

[](#class-instantiator)

The class instantiator tries to create an object of the passed class recursively.

```
