Manifest and CLI commands
The manifest is a JSON file using schema version 1. Relative paths are resolved from the directory containing the manifest, not from the current working directory.
{
"schema_version": 1,
"project": {
"root": "../my-application",
"entrypoint": "server.php"
},
"target": "linux-x86_64",
"php_version": "8.4.27",
"extensions": ["phar", "pcntl", "posix", "sockets", "openssl", "ctype"],
"toolchain": {
"spc": "/opt/static-php-cli/bin/spc",
"micro": "/opt/static-php-cli/buildroot/bin/micro.sfx",
"version": "2.8.6"
},
"output": "../dist/my-application"
}
project.root points to the application directory; entrypoint must remain inside it. target currently accepts only linux-x86_64. php_version must exactly match the PHP version exposed by micro.sfx. The extensions list declares the extensions the runtime must load.
Composer graph
When the project has a composer.json, it must also have composer.lock, vendor/autoload.php, and vendor/composer/installed.json. The build compares installed package versions, sources, and references with the lockfile, and rejects dev dependencies or a mismatched graph. Install production packages with composer install --no-dev --no-scripts --no-plugins first; Packager does not run Composer.
Commands
php bin/localzet-packager validate packager.json
php -d phar.readonly=0 bin/localzet-packager build packager.json
php bin/localzet-packager keygen /secure/release.key /secure/release.pub
php bin/localzet-packager sign ../dist/my-application /secure/release.key
php bin/localzet-packager verify ../dist/my-application /secure/trusted-release.pub
validate checks the manifest and project tree. build creates the executable, .manifest.json, and SPDX 2.3 .spdx.json. Metadata records the target, checked runtime/extensions, backend versions, and hashes for the lockfile, runtime, executable, and SBOM. Unconfirmed license data is marked NOASSERTION.
keygen refuses to overwrite existing keys and restricts access to the private key file. sign covers the executable, metadata, and SBOM as one bundle. verify requires a separately trusted public key; a key shipped with the bundle is not trusted automatically. A signature is not provenance evidence.
For an optional licensed manifest, read licensing and security.

