109 reputation
3
bio website drom.ru
location Vladivostok, Russia
age 27
visits member for 2 years, 11 months
seen Jul 17 '13 at 8:19

Oct
3
comment PHP PSR-0 + several namespaces in one file and autoload
I would suggest to use one file per class, organized in folders according to your namespace - this is what I do now and this is exactly why I've posted this topic. I actually solved the problem, - what I did is: I wrote a script that I run before deploying that compiles all the classes into a single php file and makes a file for class autoloader which contains information about which classes the generated file contain. It works fine for several weeks now.
Oct
3
comment PHP PSR-0 + several namespaces in one file and autoload
Thank you for the answer. I've tested phar archive - it still performs IO operations to get a certain class from an archive (so, it seems like the archive itself does not remain in the memory! APC in this case probably would be a saver, but I hardly can say it's maintainable). HipHop is an overkill + introducing hiphop in our project will bring a lot of problems.
Aug
9
awarded  Student
Aug
9
comment PHP PSR-0 + several namespaces in one file and autoload
another solutions: class_map.php inside a directory with a namespace? phar? caching paths of loaded classes in apc cache?
Aug
9
asked PHP PSR-0 + several namespaces in one file and autoload
Jul
28
awarded  Supporter
May
19
awarded  Autobiographer