nowfound

Life & fun · April 7, 2019

PC

PHP Compiler to .Net

PHP Compiler to .Net launched on April 7, 2019 with 7 votes, #1,085 of 3,128 launches that month and more than 50% of that year's launches. The site was still online in September 2026, 7 years on.

What it does

Compile and run PHP on top the modern, secure and highly performant .NET runtime. PeachPie is completely open-source , licensed under the liberal Apache 2.0. We are also a member of the .NET Foundation , which means you can have confidence in building production apps on top of the project. Combine PHP and .NET in the same project , seamlessly call classes or libraries between the two platforms and build hybrid apps, choosing whichever language suits your use case. PeachPie compiles legacy PHP code into portable class libraries, enabling developers to build cross-platform apps and libraries for Microsoft platforms . Compiled programs run on the reimplemented PeachPie runtime, fully…from peachpie.io

Does a similar job

all alternatives →
  • Domain-Driven Design in PHP2016 · leanpub.com · ▲71

    Real examples written in PHP.

  • Rust compiler in PHP emitting x86-64 executablesMar 2026 · github.com · ▲66

    Hi! I put together a Rust compiler written in PHP. It takes Rust source code and outputs x86-64 Linux binaries directly. No LLVM, no assembler, no linker. It has a working ownership checker, borrow checker, type checker, structs, functions, control flow, and mutable references. The test suite has 80+ cases. The whole thing is around 2,500 lines of PHP.

  • IW
  • JT
    Java to PHP Compiler2014 · ▲7

    I had this crazy idea like some years ago.. I wasn't expecting it be factible, and there's still some semantic problems with this approach Anyways, the whole idea was to take some java source, generate an AST, and output it back as syntactically correct PHP. why? 50% fun + 50% exploration So I have this really basic compiler, which can roughly output its own code; what's still missing? - static vs instance detection (-> vs ::) - class' properties - method visibility - enums - inner types - annonymous classes - dealing with method overriding There's a huge gap in the semantic area (eg:…

  • PC
    PHP Code Generator – A scaffolding framework2014 · about.asika.tw · ▲27

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, April 2019

the whole month →