# peachpiecompiler/peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core

Repository: https://github.com/peachpiecompiler/peachpie
Canonical: https://ross.abutalabs.com/products/peachpie
Homepage: https://www.peachpie.io
Language: C#
License: Apache-2.0
License Family: permissive
Topics: php-compiler, roslyn, php, peachpie, dotnet, dotnetcore, microsoft, opensource, pchpcompiler, netstandard, aspnet-core, coreclr
Last push: 2026-06-09T10:51:03+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 86, release rhythm 25, longevity 100
- inputs: {"age_days": 3862, "days_push": 85, "days_rel": 289, "gap_med": 269, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2485, forks 212 (observed 2026-08-28T04:06:55.518097+00:00)

## What it is
PeachPie is an open-source PHP compiler built on Microsoft Roslyn that compiles PHP code to .NET and .NET Core, with a reimplemented PHP runtime for full compatibility. It enables both-way PHP/.NET interoperability, letting hybrid applications mix C# and PHP seamlessly.

## Use cases
- compile php code to .net
- run php applications on .net core
- call php classes from c#
- migrate legacy php codebase to dotnet
- distribute php apps as nuget packages without source
- build hybrid c# and php projects in one solution

## When to choose
- you need PHP and .NET code to interoperate in a single application
- you want to run PHP on the cross-platform, verifiable .NET runtime
- you want to distribute PHP applications source-lessly as .NET libraries
- you want static analysis and diagnostics for PHP at compile time

## When to avoid
- you need a standard LAMP stack or PHP extensions not reimplemented by the runtime
- your project depends on the latest PHP version features
- you only need to host PHP scripts without .NET integration

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, interpreter, sdk, developer-tools
- domain: compilers, programming-languages, web-development, cross-platform
- platform: dotnet, cross-platform, windows
- tags: php-compiler, roslyn, interop, nuget, aspnet-core, php-runtime, compiler, linux, macos

## Member repositories
- peachpiecompiler/peachpie (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:55.518097+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-30T08:31:49.525215+00:00, confidence not recorded.
  - readme: https://github.com/peachpiecompiler/peachpie (fetched 2026-08-28T04:06:55.518097+00:00, sha e446349fa766)
  - homepage: https://www.peachpie.io (fetched 2026-08-29T10:09:59.695854+00:00, sha 779db2e2c2c5)
  - site_page: https://docs.peachpie.io/ (fetched 2026-08-29T10:09:59.705073+00:00, sha 0e2974864775)
- Data as of 2026-08-30T08:39:29.467469+00:00.
