# crazywhalecc/static-php-cli

Build standalone portable PHP binaries on Linux, macOS, Windows, with PHP project together, with popular extensions included.

Repository: https://github.com/crazywhalecc/static-php-cli
Canonical: https://ross.abutalabs.com/products/static-php-cli
Homepage: https://static-php.dev
Language: PHP
License: MIT
License Family: permissive
Topics: swoole, php, php-src, php-cli, static-link-binary, alpine, workerman, static, binary, php8, frankenphp
Last push: 2026-08-22T18:34:45+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 80, longevity 100
- inputs: {"age_days": 1955, "days_push": 11, "days_rel": 137, "gap_med": 14.0, "n_releases_24m": 33}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1925, forks 405 (observed 2026-08-28T04:05:55.543866+00:00)

## What it is
StaticPHP (formerly static-php-cli) is a tool for compiling standalone, dependency-free PHP binaries with popular extensions included on Linux, macOS, and Windows. It can also bundle PHP source code with the interpreter into a single self-extracting executable via phpmicro.

## Use cases
- build a standalone portable php binary
- compile php cli with extensions statically linked
- package a php script into a single executable
- create zero-dependency php binary for deployment
- embed php interpreter with my project into one file
- build php binary for alpine linux
- distribute a php cli tool without requiring php installed

## When to choose
- you need to ship a PHP CLI app or script as a single portable executable
- you want a statically linked PHP binary with specific extensions on Linux, macOS, or Windows
- you want to combine PHP source code and interpreter into one self-extracting binary with phpmicro

## When to avoid
- you only need a standard PHP installation for web hosting
- you need PHP-FPM or full web-server integration rather than CLI/micro binaries
- you rely on extensions not supported by the project's build system

## Facets
- artifact type: cli-tool
- maturity: active
- function: build-tool, compiler, cli, developer-tools
- domain: developer-tools, cross-platform
- platform: windows, cli, cross-platform
- tags: php, static-linking, portable-binaries, phpmicro, single-file-executable, php-extensions, command-line, linux, macos

## Member repositories
- crazywhalecc/static-php-cli (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:55.543866+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:09:21.400220+00:00, confidence not recorded.
  - readme: https://github.com/crazywhalecc/static-php-cli (fetched 2026-08-28T04:05:55.543866+00:00, sha 63ff411cce14)
  - homepage: https://static-php.dev (fetched 2026-08-29T10:48:43.492662+00:00, sha 17a7cf5d8a9c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
