There is something I entirely missed as for phar files. I am installing a project that requires phpunit, pdepend and other dependencies. I fetched them as .phar files. But, I am
If you want to just using it, you should include as phar:///path/to/myphar.phar/file.php.
phar:///path/to/myphar.phar/file.php
But if you really want to unpack it, see the PharData class - no known (internal) extraction in command line, but you can write a script for that.