feat: add support for building PHAR files and associated tests