This library provides a way of avoiding usage of constructors when instantiating PHP classes. The suggested installation method is via composer. The instantiator is able to create new instances of any class without using the constructor or any API of the class itself. The PHPUnit version to be used is the one installed as a dev- dependency via composer. 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. Accepted coverage for new contributions is 80%. Any contribution not satisfying this requirement won’t be merged.

Features

  • Instantiate objects in PHP without invoking their constructors
  • Small and very lightweight utility
  • The suggested installation method is via composer
  • Create new instances of any class without using the constructor
  • Also, create new instances of any class without using any API of the class itself

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Instantiator

Instantiator Web Site

Other Useful Business Software
Build on Google Cloud with $300 in Free Credit Icon
Build on Google Cloud with $300 in Free Credit

New to Google Cloud? Get $300 in free credit to explore Compute Engine, BigQuery, Cloud Run, Vertex AI, and 150+ other products.

Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query exabytes in BigQuery, or build AI apps with Vertex AI and Gemini. Once your credits are used, keep building with 20+ products with free monthly usage, including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. Sign up to start building right away.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Instantiator!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Libraries

Registered

2021-06-04