use ObjectLoad\Loader; $loader = new Loader(); $object = $loader->loadClass('MyClass');
use ObjectLoad\Loader; $loader = new Loader(); $arguments = array('argument1', 'argument2', 123); $object = $loader->loadClass('MyOtherClass', $arguments);In this example, we are passing an array of constructor arguments as the second parameter to the `loadClass` method. The `Loader` class will take care of instantiating the class with the specified constructor arguments. The PHP Object Load library is part of the bigger Symfony framework and can be found in the `symfony/dependency-injection` package. It provides a useful utility for dynamically loading PHP objects and is widely used in PHP web development.