phc-win
phc-win copied to clipboard
Create single executables out of your PHP applications.
PHC-WIN
This branch is for active development, see branch v2.0.1 for current release.
Create single file executables for your PHP applications.
Install
Checkout the releases for the GUI.
CONSOLE
Via npm:
# Console Version only.
npm install -g phc-win
Via Git:
git clone https://github.com/jaredallard/phc-win
node ./bin/phc-win
Building
Requirements
- Node.js 4+
Windows:
- Visual Studio 2015 (PHP 7)
- Visual Studio 2012 (PHP 5)
Linux:
- Internet, when downloading pre-builts.
- build-essentials (Debian) when building PHP from source.
First clone the repository:
git clone https://github.com/jaredallard/phc-win
If from source, make sure a compiler is installed: (Windows just needs VS)
# Debian / Ubuntu
sudo apt install build-essentials
# Arch Linux
sudo pacman -Syu
Modify the config: config.js
Start the build:
# GUI
gulp build-gui
# Console
gulp build-console
# GUI & Console
gulp build-all