Localzet Packager
Localzet Packager builds standalone executables for Localzet Server and Triangle applications. It validates a JSON manifest and a prepared production Composer graph, packages project files into a PHAR, probes the PHP runtime in micro.sfx, and invokes a pinned static-php-cli version.
Packager has no stable release yet. The current evidence covers a Linux x86-64 prototype only. ARM64 builds, reproducibility across independent builders, provenance verification, and production licensing have not been verified.
What a build does
- Validate the target, entrypoint, local paths, Composer lockfile, and installed production dependencies.
- Package the application and its
vendor/tree into a PHAR after checking dependency metadata. - Run a probe using the configured
micro.sfxand check its exact PHP version and loaded extensions. - Pass the PHAR to the pinned static-php-cli version to combine it with the runtime.
- Create the executable, build metadata, and SPDX 2.3 SBOM. A separate command can sign the bundle with Ed25519.
Packager does not run Composer or the packaged project's scripts. Install production dependencies from the lockfile in the build environment first.
Start here
- Install the tools and build.
- Configure the manifest and CLI.
- Verify signatures and review licensing and security limits.
- Review compatibility, tests, and release gates.
Security boundaries
PHAR and micro SAPI do not encrypt PHP code; PHAR contents can be extracted. A signature protects the integrity of the executable, metadata, and SBOM when the verification key comes from a trusted channel. It does not prove that the source is safe or that the build environment is trustworthy. License checks are not an anti-tamper guarantee: an owner with sufficient access can modify the local binary or system clock.
Do not include license keys, tokens, passwords, private keys, or certificates in project files. The repository documents the current implementation and architecture at Localzet Packager.

