Skip to content
@getelephc

getelephc

elephc logo

elephc

Write PHP. Ship a native binary.

Compiler stars Compiler downloads License: MIT

PHP to native · macOS · Linux · open source

Tools, experiments, and showcases around elephc, a compiler that turns a supported subset of PHP into native executables and libraries. Explore systems programming, build command-line tools, and bring PHP beyond the web.

Official website · Documentation · Releases


Start here

The compiler is developed in illegalstudio/elephc. This organization brings together its tooling and experiments.

Projects

Project What you will find
elephc The PHP-to-native compiler, language documentation, examples, and releases.
elvm Install compiler versions side by side and pin a version per project.
DOOM DOOM rendered in PHP and compiled to a native binary. A read-only mirror of the compiler's showcase.
Laravel Work in progress exploring Laravel compilation with elephc.
Tempest Work in progress exploring Tempest compilation with elephc.

PHP, running DOOM

DOOM rendered in PHP and running as an elephc-compiled native binary

Explore the DOOM showcase for source, build instructions, and a walkthrough.

Get involved

elephc is experimental and evolving. It compiles a supported subset of PHP, and the framework projects above are ongoing compatibility experiments.

Report compiler bugs and propose improvements in elephc issues. For compiler and DOOM showcase contributions, start with the contributing guide. For elvm, use its own issue tracker.

Pinned Loading

  1. laravel laravel Public

    Work in progress to compile Laravel with Elephc

    Blade 23 1

Repositories

Showing 8 of 8 repositories
  • wordpress Public
    getelephc/wordpress's past year of commit activity
    PHP 2 0 0 0 Updated Nov 25, 2026
  • elvm Public

    Version manager for the elephc compiler. Pins a version per project through a committed .elephc-version, installs published binaries or builds from source, and adds no shell hooks: PATH gets one entry, then a shim resolves the version and execs the real compiler.

    getelephc/elvm's past year of commit activity
    Rust 10 MIT 0 0 0 Updated Nov 22, 2026
  • doom Public

    DOOM rendered in PHP and compiled to a native binary by elephc.

    getelephc/doom's past year of commit activity
    PHP 10 MIT 0 0 0 Updated Nov 20, 2026
  • tempest Public

    Work in progress to compile Tempest with Elephc

    getelephc/tempest's past year of commit activity
    PHP 2 MIT 0 0 0 Updated Nov 16, 2026
  • bootgly Public
    getelephc/bootgly's past year of commit activity
    PHP 2 MIT 0 0 0 Updated Nov 12, 2026
  • static Public

    Static assets for elephc, including videos and showcase media.

    0 0 0 0 Updated Nov 4, 2026
  • .github Public

    Organization profile for elephc, the PHP-to-native compiler.

    getelephc/.github's past year of commit activity
    0 0 0 0 Updated Oct 26, 2026
  • laravel Public

    Work in progress to compile Laravel with Elephc

    getelephc/laravel's past year of commit activity
    Blade 23 1 0 0 Updated Sep 23, 2026

Top languages

Loading…