Download the PHP package supdger/webman-aot-builder without Composer

On this page you can find all versions of the php package supdger/webman-aot-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package webman-aot-builder

Webman AOT Builder

简体中文

Webman AOT Builder compiles PHP projects into fully static Linux amd64 executables. Original PHP source is passed directly to TypePHP. Install the tool and build your project on a macOS Apple Silicon or Windows x64 development machine, then deploy the generated dist-aot/ directory to Linux. The target machine does not need PHP installed.

How it works

The builder enumerates readable PHP sources and compiles an isolated mirror copy of each file with TypePHP, then generates an executable with Clang and the PHPx static SDK. Compilation is tiered so a single file cannot abort the build:

The build finishes with a per-tier report (compiled / processed / interpreted) instead of surfacing compiler errors. Your original source code is never modified; all rewrites happen only inside the isolated build mirror. Configuration, templates, and static assets remain external files as needed.

Source code and installation packages

This repository contains the builder's source code, including the command-line tool, source input organization, compiler component management, and installation package scripts. For development or building your own installation packages, start with the latest development source. See the source build guide for details.

Maintainers can compose a component from a complete verified compiler source using tools/build-minimal-component.php --compiler-source-root=PATH, while reusing a prepared SDK. The development-source entry verifies source provenance, the complete authoritative Composer map, and the builder's full-static runtime declaration contract; see the source build guide for the required inputs. This component check does not replace installation, complete-project build, or native regression acceptance.

To use the tool, download an installation package from the latest stable release. Choose the macOS Apple Silicon or Windows x64 package that matches your development machine. Lightweight packages download and prepare compiler components on first use; full packages include the components and can prepare them offline during installation. Both packages provide the webman-aot command after installation. GitHub's Source code (zip) download is a source archive, not an installation package. If Windows cannot download the components, download the full installation package whose name contains full-windows-x86_64.zip, extract the entire archive, and run install.cmd. A components.zip archive contains only component resources and has no installer. See full package installation on Windows.

Installation and usage

Follow the installation and usage guide to download, verify, and install the tool. After installation, run the following command from any directory to check your development machine and prepare missing compiler components. A healthy environment reports Result: healthy:

To build, go to your own PHP project directory and run:

build generates dist-aot/; verify checks its distribution structure and static properties. Compilation has only four prerequisites:

  1. The PHP source to compile is readable.
  2. TypePHP and the target platform toolchain are available.
  3. The output directory is writable.
  4. Executable builds have an explicit entrypoint; individual files and libraries follow their corresponding compilation modes.

Standard Webman layouts need no entrypoint flag: a root start.php is picked up automatically, after an explicit --entry or a manifest entry-source and before Composer bin detection. The generated entrypoint is synthesized in the mirror so the Embed SAPI requirement is met. The builder does not check dependency versions, review business code, or impose project, framework, plugin, directory layout, or business startup requirements. Generated runtime data (runtime/, node_modules/), vendor development directories (tests, fixtures, docs, specs, benchmarks), hidden directories, and symlinks are excluded from compilation rather than failing the build.

Build output

Example output structure (runtime resources vary by project):

Keep external resource files in their original relative layout beside the executable. Native regression checks run with only the executable, runtime configuration, and explicitly declared non-PHP resources; compiled PHP source is absent from the runtime container.

Copy the entire dist-aot/ directory to your Linux amd64 target machine. Configure .env, databases, and other runtime requirements for your project, then start the application from that directory:

Use ./start.sh --daemon to run in the background and ./stop.sh to stop it. See Linux deployment and acceptance checks for target configuration and business checks after startup.

Builds and startup checks on real machines

These records describe the historical v0.3.2 adaptation workflow. They do not establish Windows compilation or linking results for the current original-source workflow.

On 2026-09-30, the user built a SaiAdmin project on macOS Apple Silicon and Windows x64 machines, then copied each build to a Linux x86_64 server and started it. The excerpts below contain key terminal output provided by the user. macOS and Windows are build hosts; the generated executables target Linux.

macOS Apple Silicon: build and start on Linux

The v0.3.2 lightweight package was used to install the tool, prepare compiler components, and build the SaiAdmin project. The following excerpts preserve key installation, component preparation, compilation, and artifact verification steps, with repeated progress lines omitted:

The artifacts from this Mac build were copied to a Linux x86_64 server. Running ./start.sh in the output directory reported that all 8 workers started successfully (the process username has been anonymized):

Windows x64: build and start on CentOS 7

The v0.3.2 Windows full package was used to build the SaiAdmin project. The available log preserves the final compilation steps, build completion, and artifact verification. The total build time was approximately 35 minutes and 43 seconds:

The artifacts from this Windows build were copied to another server running CentOS 7. Running ./start.sh in the output directory reported that all 4 workers started successfully (the process username has been anonymized):

Builds and artifact verification succeeded on both development machines, and both Linux target environments reported successful service startup. Successful installation on the Mac was also recorded. Compatibility warnings remained during startup; HTTP, database, and business API acceptance checks have not yet been completed. See the real-machine test records for details.

Documentation

License and feedback

Original code is licensed under the NOTICE for third-party component licenses and attribution. Please submit problems and suggestions to Issues.


All versions of webman-aot-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
composer-plugin-api Version *
composer Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package supdger/webman-aot-builder contains the following files

Loading the files please wait ...