Re: What's the best way to make a dynamic plugin architecture?
| From: | Larry Garfield | Date: | Mon, 27 Aug 2012 23:16:54 +0000 |
| Subject: | Re: What's the best way to make a dynamic plugin architecture? | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-318893@lists.php.net to get a copy of this message | ||
On 8/27/12 6:11 PM, Matijn Woudt wrote:
There was a proposal for one, but it was never added. You still need a user-space class loader for PSR-0, but they're readily available. --Larry GarfieldYou should never be calling require() yourself. Just follow the PSR-0 naming standard and use an autoloader, then you don't have to even think about it. There are many existing autoloaders you can use, including Composer's, Symfony2's, and probably Zend has one as well.I believe there's one in PHP by default now called SPLClassLoader or something like that.. - Matijn