Package PHP scripts and PHARs into standalone, cross-platform executables with embedded PHP runtime.
PHPacker is a tool that packages PHP scripts and PHAR archives into standalone, cross-platform executables. It solves the problem of distributing PHP applications by embedding the PHP runtime directly into the executable, eliminating the need for users to install PHP separately. This makes PHP applications as easy to distribute as compiled binaries.
PHP developers who need to distribute their applications to users without PHP installed, particularly those building CLI tools, desktop applications, or portable utilities in PHP.
Developers choose PHPacker because it provides the simplest way to create truly standalone PHP executables without complex build processes, making PHP applications as portable as Go or Rust binaries while maintaining PHP's rapid development workflow.
Package any PHP script or PHAR into a standalone, cross-platform executable
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Creates single-file binaries that embed the PHP runtime, allowing users to run applications without installing PHP separately, as highlighted in the key features.
Generates executables for Windows, macOS, and Linux from the same source, making distribution hassle-free across diverse systems.
Can directly package existing PHAR archives into executable format, simplifying the transition for already-packaged PHP applications.
Uses a straightforward command like `phpacker build` for quick packaging, as demonstrated in the quick start section.
Bundling the entire PHP runtime significantly increases executable size, which can be a drawback for disk space or download speed.
Does not provide options to customize PHP extensions or versions in the bundled runtime, limiting flexibility for specialized applications.
The README references documentation on a separate website, which may be less accessible or incomplete compared to integrated docs.