PHP compiler for .NET: PeachPie reaches version 1.0


With PeachPie, PHP code can be executed in a .NET framework – that is what the developers behind the project promise. You want to use the compiler to open the door to the .NET world for PHP developers. The project has now reached version 1.0.

The current release brings support for Microsoft Visual Studio. Developers can now open, develop and debug their PHP projects in the editor. In addition, selected Composer projects can be compiled with the first major version and used as a class library by a C # project (Twig, PHPUnit, RandomLib and dependencies of the PHP framework Laravel). A code analysis function is intended to provide developers with comprehensive diagnoses of PHP code.

PeachPie is based on Microsoft’s Roslyn compiler platform and consists of a compiler, runtime, extension libraries, IDE support and MSBuild support – all familiar with the .NET standard. With the PHP compiler, PHP can be executed within the .NET framework.

PeachPie’s type analysis function and the Roslyn base are designed to improve the performance of PHP applications and components. Code should be completely verifiable without unsafe constructs, since the programs run within the standardized and manageable .NET or .NET Core environment. Furthermore, PHP applications can be distributed open-source, which should bring additional security advantages. The development team behind the project made sure that the project compiles legacy PHP code into portable class libraries. This gives users the opportunity to create cross-platform applications and libraries for Microsoft platforms.

The tool is apparently completely .NET compatible, since compiled programs run on the reimplemented runtime environment of the tool, which in turn should be compatible with the PHP runtime environment. PeachPie gives developers the ability to create hybrid applications with parts written in C # and others in PHP. According to the development team, both parts are compatible with one another and can communicate seamlessly with one another – within the .NET framework. further information can be found in the release notes for version 1.0 such as on GitHub.


To home page