Skip to content

Blog

What you can build with PeachPie

Over the course of the 6+ years we’ve been developing the PHP compiler to .NET, many practical apps have been tried on PeachPie, both by the core developer team and by the community. In this article, we’ll take a look at some of the coolest projects built with PeachPie.

PeachPie 1.0.9

It’s been a while since our last update, but the project is still well alive and under active development. Let’s take a look at some of the improvements to the PeachPie compiler platform; we’re continuously working on it to make PeachPie fast and stable for everyday use.

Targeting a library for both PHP and .NET

There is a massive amount of libraries and frameworks written in PHP, providing useful functionalities, some even commercially. You may have come across libraries, such as PDF generators, the Twig templating engine, random data generators, etc. Let’s take a look at how to develop the library for both PHP and .NET, so that C# developers will be able to seamlessly consume the functionality, as well.

Twig in Razor

Whenever you are building a website, you choose how to design your front-end. Different platforms each offer their own ways; in PHP, the selection of options is by far the most extensive.

But Why?

Almost every post, article or thread on Reddit about PeachPie is inevitably met with someone posting the famed Ryan Reynolds GIF asking “but why?”, so instead of explaining each time, we decided to put our entire motivation behind this project on paper so that we can link to it.

Self-contained PHP app

PHP programs usually need a runtime installed on your target machine, appropriate version of PHP itself, a web server and some sort of configuration. This is no longer needed when you are compiling PHP code into .NET. The PHP web or console program can be distributed as a self-contained executable with no such dependencies.