Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 1, 2024 via composer

doctrine/instantiator 2.0.0

A small, lightweight utility to instantiate objects in PHP without invoking their constructors
Package summary
Share
0
issues
1
license
1
MIT
Package created
12 Aug 2014
Version published
30 Dec 2022
Maintainers
2
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
doctrine/instantiator@2.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of doctrine/instantiator 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does doctrine/instantiator do?

The package doctrine/instantiator is a minimally-sized and lightweight utility designed for the PHP language. It serves the specific purpose of instantiating objects without ever having to invoke their constructors. This exceptional feature allows for a high degree of flexibility in controlling the object creation process, particularly useful in instances where the class constructors are not desired to be triggered upon object creation.

How do you use doctrine/instantiator?

Using doctrine/instantiation in your PHP project is quite straightforward. After installing the package with Composer, you can start creating objects without the need to call their constructors. Here's a brief code snippet to guide you through the usage:

require 'vendor/autoload.php'; // Path to autoload.php file if you're using composer

$instantiator = new \Doctrine\Instantiator\Instantiator();
$instance = $instantiator->instantiate(\My\ClassName\Here::class);

In the above example, the class \My\ClassName\Here is instantiated into an object, and none of its constructors or APIs are called during this process.

Where are the doctrine/instantiator docs?

The documentation for doctrine/instantiator can be found directly in the README file of the GitHub repository this package originates from. If you're interested in diving deep into the details of this package, or would like to contribute to its enhancement, the repository is the right starting point. The documentation comprehensively outlines the steps to install, use and contribute to the repository. You can reach the documentation directly by visiting this link.