Skip to content


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.

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.

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.

Evil Eval – PHP Scripting in .NET with PeachPie

PHP is a language well known for its many dynamic features that are occasionally somewhat overused. Whether it is dynamic typing, type juggling or dynamic code evaluation, these features are very demanding on the underlying runtime. Another feature, the so called ‘eval’, is no less interesting. Let’s examine it further.