import{G as e,K as t,at as n,j as r}from"./chunks/framework.DrNIf5Lg.js";var i=JSON.parse(`{"title":"Developer Guide","description":"","frontmatter":{},"headers":[],"relativePath":"en/develop/index.md","filePath":"en/develop/index.md"}`),a={name:`en/develop/index.md`};function o(r,i,a,o,s,c){return n(),e(`div`,null,[...i[0]||=[t(`

Developer Guide

This section covers the StaticPHP development workflow and the foundational knowledge needed to understand how StaticPHP works under the hood.

Overview

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.

Development Environment

To get started with StaticPHP development, you'll need a PHP development environment with the required dependencies installed.

Requirements:

These PHP extensions are required for StaticPHP's dev environment.

Setup Steps

  1. Clone the repository:

    bash
    git clone https://github.com/crazywhalecc/static-php-cli.git
    cd static-php-cli
  2. Install PHP dependencies:

    bash
    composer install
  3. Verify the setup:

    bash
    bin/spc --version

You can continue reading Project Structure to learn more about StaticPHP's framework architecture.

`,15)]])}var s=r(a,[[`render`,o]]);export{i as __pageData,s as default};