phpacker/phpacker

Package a PHP script as a standalone cross-platform binary. Convenience wrapper around static-php & phpmicro using general-purpose php binaries

Fund package maintenance!
gwleuverink

0.5.0 2025-06-15 21:52 UTC

README

PHPacker

tests analyze format Latest Version on Packagist License

PHPacker enables you to package any PHP script or PHAR into a standalone, cross-platform executable. It handles all the complexity of bundling PHP with your application, making distribution simple and hassle-free.


Documentation

You can read the official documentation on the PHPacker website.


Installation

You can install PHPacker globally via Composer:

composer global require phpacker/phpacker

Or as a project dependency:

composer require phpacker/phpacker --dev

Quick Start

Build a standalone executable from your PHP script with a single command:

phpacker build --src=./app.phar

Contributing

Contributions are welcome! Please see our Contributing Guide for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support