Generic PHP PHAR compiler
Switch branches/tags
Clone or download

PHP PHAR Compiler

Latest Stable Build Status Scrutinizer Coverage License

This library provides a generic PHP PHAR compiler.

How to use?

$compiler = new Compiler(PROJECT_PATH);


$compiler->addDirectory('vendor/composer', '!*.php');
$compiler->addDirectory('vendor/.../Component/Console', ['Tests/*', '!*.php']);



Install via Composer

Install Composer if you don't already have it present on your system.

To install the library, run the following command and you will get the latest version:

$ php composer.phar require secondtruth/phar-compiler


  • You must have at least PHP version 5.6 installed on your system.