【PHPCUSTOM】Package PHP program into EXE

Table of contents

1. Download PHPCUSTOM

2. PHP website packaging

1. Open PHPCUSTOM

2. Configuration parameters

3. Generate exe file


There are many articles on the Internet about packaging PHP programs into EXE, but none of them work. Finally, I found PHPCUSTOM, which can be used to package PHP programs into exe. We all know that PHP is a server-side language and requires the running environment apache, MySQL, and PHP. The essence of the PHPCUSTOM tool is to package these running environments, build a local environment, and wrap the project entry with an exe shell. Opening the exe actually still calls The browser runs the project.

1. Download PHPCUSTOM

PHPCUSTOM free download address (scroll down if you don’t want to see the trailer and introduction) - Website related - lccee_Technology Network

After the download is completed, there is no need to install it. Just open PHPCUSTOM.exe directly. It should be noted that the saving path cannot be Chinese characters.

2. PHP website packaging

1. Open PHPCUSTOM

Select "Function List" -> "Premium Tools" -> "PHP Website Packaging"

2. Configuration parameters

  • Select server: Keep the same as the original project
  • PHP version: consistent with the original project. If the version is inconsistent, you can download it from the home page -> website management.
  • Website directory: This directory is the directory of the original project, select the root directory. If the ThinkPHP framework selects the upper-level directory of public, the system will automatically use public as the root directory.
  • Generation location: This is the location where the generated exe is stored.
  • Simple generation of website packages: generated files contain source code
  • Encapsulate source code to generate EXE file: the generated file does not contain source code

 

3. Generate exe file

Select the generation mode as needed. After generation, there will be PHPCUSTOM_Pack.exe in the folder. Click the exe to run the project.

Guess you like

Origin blog.csdn.net/qq_25285531/article/details/132830455