Skip to content

ruo2012/peachpie

 
 

Repository files navigation

Peachpie Compiler

The open-source PHP compiler to .NET

Join the chat at https://gitter.im/iolevel/peachpie

Getting Started
Documentation

Blog http://www.peachpie.io/blog
![Web] (https://raw.githubusercontent.com/paulrobertlloyd/socialmediaicons/master/website-16x16.png) http://www.peachpie.io
Twitter https://twitter.com/pchpcompiler
Facebook https://www.facebook.com/pchpcompiler/

If you would like to reward us for our hard work on this project, we will be very happy to accept donations of all amounts.

paypal

What is Peachpie?

Peachpie is a modern PHP compiler based on Roslyn by Microsoft and drawing from our popular Phalanger project. It allows PHP to be executed within the .NET framework, thereby opening the door for PHP developers into the world of .NET – and vice versa.

The goal of the project is to compile legacy PHP code into portable class libraries, which enables developers to build cross-platform apps and libraries for Microsoft platforms quickly and easily. As a direct result, PHP applications powered by Peachpie would run across all devices and operating systems that are able to run .NET.

Besides granting PHP programmers access to cross-platform development, Peachpie allows for a full compatibility with .NET, which enables the development of hybrid applications, where part of the code is written in C# and part in PHP. The parts will be entirely compatible and can communicate seamlessly, all within the .NET framework.

Peachpie makes use of Microsoft's Roslyn compiler and years worth of developing Phalanger, where the design for this compiler was established and valuable experience was obtained in the process. This, together with an extensive type analysis, allows us to set the objective of Peachpie to be a significant performance increase of PHP applications and components.

How to build or execute?

This project is a work in progress. Please be aware that Peachpie is not complete and is therefore not intended to run full applications, but you are welcome to use it for your inspiration. You can run Peachpie in Visual Studio Code or on the command line. Please refer to our short introduction video to see how to run the compiler on the command line and to our Getting Started section. The video below shows how Peachpie can be integrated into Visual Studio Code:

Peachpie Introduction

Status

You can find an up-to-date status of the project in our Roadmap section. Please note that the status is dynamic; Peachpie is a work in progress, which means that the list of finished and planned features frequently changes and will be updated on a regular basis.

How to contribute?

We can use all the help we can get. You can contribute to our repository, spread the word about this project, or give us a small donation to help fund the development. If you believe you have valuable knowledge and experience to add to this project, please do not hesitate to contribute to our repo – your help is much appreciated.

How to get in touch?

We kindly ask you to be patient with your queries; you can follow us on Twitter or on Facebook. You can contact us there regarding your questions or ask the community for support on Gitter, but please understand that we do not provide support at this point.

About

Peachpie - The PHP Compiler and Runtime for .NET

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 56.8%
  • Visual Basic .NET 42.9%
  • 1C Enterprise 0.2%
  • Yacc 0.1%
  • PowerShell 0.0%
  • Lex 0.0%