PEAR : PHP_Archive
This class uses a stream filter to provide PHP with something similar to java’s JAR files. It creates a tar archive, which can be accessed using a ‘phar://file.php’ notation.
E.g. require ‘phar://file.php’ instead of reqire ‘file.php’.
This allows simple deploying of complete php applications from one file.