Is there a way to embed a group of PHP classes into PHP, so that I can call them natively without including the classes as files every time? I need this to be locally used or on a private server.
You may want to use __autoload() if i understand you correctly.
Note from @KingCrunch:
The __autoload() function should not be used anymore, because if you use other libraries, that define an spl-loader, the function is never call since then
So it'd be better if you stick with SPL Autoload functions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With