How do I instantiate an object in PHP but only via another object
Using the PHP Stripe Library (https://github.com/stripe) you can instantiate an object like so: $stripe = new StripeStripeClient( 'sk_test_secretkeyhere' ); $product = $stripe->products->retrieve( 'prod_abc123' ); I'm not looking to understand specifically how Stripe does it. But rather, how a simple example…