import{_ as i,c as t,o as a,aj as s}from"./chunks/framework.C2AwuPrQ.js";const k=JSON.parse('{"title":"Developer Guide","description":"","frontmatter":{},"headers":[],"relativePath":"en/develop/index.md","filePath":"en/develop/index.md"}'),n={name:"en/develop/index.md"};function l(r,e,o,h,p,d){return a(),t("div",null,[...e[0]||(e[0]=[s(`
This section covers the StaticPHP development workflow and the foundational knowledge needed to understand how StaticPHP works under the hood.
StaticPHP is a binary build tool whose core purpose is managing the build pipeline — downloading and configuring PHP source code, resolving extension dependencies, and invoking the underlying build system (e.g., Docker or a local compiler).
From a development perspective, StaticPHP is an open framework that provides the ability to statically build PHP and other open-source tools together. The project is maintained by @crazywhalecc and @henderkes, with contributions from the community.
You can think of StaticPHP as a typical PHP CLI project built on symfony/console.
To get started with StaticPHP development, you'll need a PHP development environment with the required dependencies installed.
Requirements:
curl, dom, filter, mbstring, openssl, pcntl, phar, posix, sodium, tokenizer, xml, xmlwriterThese PHP extensions are required for StaticPHP's
devenvironment.
Clone the repository:
git clone https://github.com/crazywhalecc/static-php-cli.git
cd static-php-cliInstall PHP dependencies:
composer installVerify the setup:
bin/spc --versionYou can continue reading Project Structure to learn more about StaticPHP's framework architecture.
`,15)])])}const u=i(n,[["render",l]]);export{k as __pageData,u as default};