| bio | website | trackmania.com |
|---|---|---|
| location | Paris, France | |
| age | ||
| visits | member for | 1 year, 7 months |
| seen | Mar 5 at 11:11 | |
| stats | profile views | 5 |
|
Feb 15 |
comment |
Where to put third party PHP library? The problem here is not autoloading but "all use the same third party PHP library." |
|
Jan 12 |
awarded | Student |
|
Oct 21 |
awarded | Scholar |
|
Oct 21 |
accepted | Where to put third party PHP library? |
|
Oct 21 |
comment |
Where to put third party PHP library? That's what I was thinking at first too, but I found out it's not sufficient to just put the including of your libraries in one activated plugin: sometimes (eg. when activating it) the file of the "core" plugin won't be required. |
|
Oct 21 |
comment |
Where to put third party PHP library? That's precisely my question: whatever the method (plugin, bootstrapper, etc.) where to put the files? |
|
Oct 21 |
comment |
Where to put third party PHP library? Plugins have different features, hence the separation: you only activate what you want. But it all relies on a framework, that why I need to include that library. It has an autoloader, and quite a few classes so checking/requiring for every class would really be a pain. And I can't really drop it in every class because it would register the autoloader several times. Right now the better solution seems to be the "core" plugin. You activate it first so it requires all the 3rd party stuff, and then you select the plugins you want. |
|
Oct 21 |
awarded | Editor |
|
Oct 21 |
revised |
Where to put third party PHP library? added 36 characters in body |
|
Oct 21 |
comment |
Where to put third party PHP library? It's for a suite of open source plugins. I'm updating the question to point that out. |
|
Oct 21 |
asked | Where to put third party PHP library? |