I'm looking into a way to add Phar support in PHP (disabled in the compiled package) to install Composer and related stuff.
So far, I tried to :
fork both openwrt-yun & the packages repos to remove --disable-phar in the makefile of PHP and recompile a Yun build, but too many errors due to down repos of whatever dependencies (I'm looking at you git.infradead.org and repo.ham.fi)
build only the PHP package, and again, inception of errors (you have to specify that Hash is static and not shared because it's a dependecy of Phar, and some random errors between Hash, Phar, the need of a PHP binary to build the PHP binary, problems between the debian x86/64 arch and the mips/ar71xx arch, and so on...)
add Phar via PECL, a massive fail too : install mod-xml, zoneinfos, reinstall a proper PEAR via pear.php.net (with "php go-pear.phar", magic), update the pear and pecl channels, upgrade everything, remove "-n" of the PHP call at the end of PECL binary because of the XML extension need, configure PEAR paths, "pecl install phar", and cry a little because it can't find phpize to build the extension (php5-dev not available)...
Well, if someone has a clue, I will appreciate it.