Are there more general tools that can “compile” or basically merge several PHP files into one file based on inclusions and startup classes? I am thinking of something similar to the Doctrine compilation function or compilation that many of the core JS frameworks do for production sites to ease file size and improve performance.
Before writing a script to do it myself, I just want to find out if there is something worth seeing that already exists (Google has not really helped so far).
Edit: I actually wrote a blog post about the .phar archive format and am very excited about it. I was more concerned about performance, but it seems like merging files will not do any good.
Does anyone have real data that might suggest an increase in performance (or lack) for combining multiple scripts into one file?
source
share