sudo apt-get install php5-dev
sudo apt-get install libbz2-dev
pecl install bcompiler
Add “extension=bcompiler.so” to /etc/php5/apache2/php.ini to activate the extension.
This is how to encode .php files:
<?php
$fh = fopen(“example.phb”, “w”);
bcompiler_write_header($fh);
bcompiler_write_file($fh, “example.php”);
bcompiler_write_footer($fh);
fclose($fh);
?>
Then in your code, update the include to include the .phb file instead.