Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2025-07-14 (Yesterday) ![]() | Not yet rated by the users | Total: Not yet counted | Not yet ranked |
Version | License | PHP version | Categories | |||
ra-phar-compiler 1.0 | MIT/X Consortium ... | 7 | PHP 5, Tools, Applications |
Description | Author | |
This package can create PHAR archives from files in a directory. |
Please read this document to learn how to create a PHAR archive to let users Download a PHP Application in single file.
This is a simple, educational web-based PHP script designed to compile a PHP application and its assets into a single executable PHAR (PHP Archive) file. It's ideal for learning about the Phar
class in PHP and for quickly packaging small to medium-sized PHP projects for distribution.
phar.readonly
Check: Notifies the user if `phar.readonly` is enabled in `php.ini`, preventing PHAR creation.
Before using this compiler, ensure your PHP environment meets the following requirements:
php.ini
Configuration:
phar.readonly = 0
: This setting in your php.ini
must be set to 0
* to allow the creation of PHAR files. On production servers, this is typically set to `1` for security reasons.
extension=bz2
(optional)*: Enable this extension in `php.ini` if you intend to use Bzip2 compression.
extension=zlib
(optional)*: Ensure this extension is enabled in `php.ini` if you intend to use Gzip compression (often enabled by default).
To execute your compiled PHAR file from the command line:
php your_application.phar
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | |||||||
0% |
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.