Home : File Types : PHAR File

.PHAR File Extension

File TypePHP Archive

DeveloperGreg Beaver
3.9 (16 Votes)
CategoryExecutable Files

What is a PHAR file?

File packaged in the PHAR (PHP Archive) format, which can be created using the Phar PHP class; stores a collection of files and supports bzip2 and gzip compression as well as a checksums for the archive; used for distributing and running PHP applications using a single file.

More Information

PHAR files are similar to Java's .JAR files and can be run using PHP. An example of a common PHP application that is distributed as a PHAR archive is PEAR (PHP Extension and Application Repository), a package manager for PHP extensions.

PHP Archive files are compatible with APC (Alternative PHP Cache), an "opcode cache" that optimizes application performance by caching the compiled versions of code. phpMyAdmin, a commonly-used front end for MySQL, has been measured with a 6x speedup when run as a PHAR file.

NOTE: Phar, the PHP component that reads and writes PHAR files, is included with PHP 5.3.

Open over 300 file formats with File Viewer Plus.
Programs that open PHAR files
Updated 3/14/2011

About PHAR Files

Our goal is to help you understand what a file with a *.phar suffix is and how to open it.

The PHP Archive file type, file format description, and Mac, Windows, and Linux programs listed on this page have been individually researched and verified by the FileInfo team. We strive for 100% accuracy and only publish information about file formats that we have tested and validated.

If you would like to suggest any additions or updates to this page, please let us know.