PeachPie - the PHP compiler and runtime for .NET and .NET Core
Перейти к файлу
Jakub Míšek 7e232e360d SixLabors 1.0 updates 2024-06-02 13:59:02 +02:00
.github Update FUNDING.yml 2024-02-21 17:23:58 +01:00
.nugs .nugs 2016-10-05 23:53:35 +02:00
build net50; dummy project for updating dev cache 2022-09-12 15:28:34 +02:00
docs Update Building-Peachpie.md 2024-05-11 14:58:11 +02:00
src SixLabors 1.0 updates 2024-06-02 13:59:02 +02:00
tests spread array test 2024-05-04 16:05:00 +02:00
tools tests cleanup 2017-04-08 17:26:03 +02:00
.editorconfig .editorconfig 2017-03-16 10:29:37 +01:00
.gitattributes 💥🐫 Added .gitattributes & .gitignore files 2016-02-05 17:22:09 +01:00
.gitignore Ignore rider files 2022-01-22 22:15:04 +01:00
.travis.yml travis fixes 2020-10-23 17:06:07 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-07-02 16:07:35 +02:00
CONTRIBUTING.md Create CONTRIBUTING.md 2017-04-08 18:32:41 +02:00
Directory.Build.props PHP 8.2 PCRE support for the `n` option 2024-06-02 12:44:57 +02:00
Directory.Build.targets removed <PackageTargetFallback> 2021-01-13 18:41:57 +01:00
LICENSE.txt Create LICENSE.txt 2016-03-16 22:48:21 +00:00
MyGet.ps1 CI Version property 2018-10-07 23:20:39 +02:00
NuGet.Config updated project structure 2020-02-28 23:41:26 +01:00
Peachpie.sln net50 2022-09-11 15:01:55 +02:00
README.md Update README.md 2024-04-17 14:49:36 +02:00

README.md


PeachPie
PeachPie Compiler

The open-source PHP compiler to .NET

PeachPie is a member project of the .NET Foundation.

Continuous Integration

Service Platform Build Status
AppVeyor Visual Studio 2019 AppVeyor Build status
Azure DevOps Windows VSTS Build Status
GitHub Actions Ubuntu 18 .NET Core

What is PeachPie?

PeachPie is a modern PHP compiler based on the Microsoft Roslyn compiler platform. It allows PHP to be compiled and executed under the .NET runtime, thereby opening the door for PHP developers into the world of .NET – and vice versa.

Project goals

  • Both-way interoperability: the project allows for hybrid applications, where parts are written in C# and others in PHP. The parts will be entirely compatible and can communicate seamlessly, all within the .NET framework.

  • Full .NET compatibility: compiled programs run on the reimplemented PeachPie runtime, fully compatibly with the PHP runtime.

  • Security: since programs run within the standardized and manageable .NET or .NET Core environment, the code is fully verifiable without any unsafe constructs. In addition, PHP applications can be distributed source-lessly for added security benefits.

  • Cross-platform development: the project compiles legacy PHP code into portable class libraries, enabling developers to build cross-platform apps and libraries for Microsoft platforms.

  • Increased performance: PeachPie's extensive type analysis and the influence of Microsoft Roslyn should provide an improved performance of PHP applications and components.

How to use PeachPie

There are currently two ways of using PeachPie via dotnet: in your favorite shell or comfortably in Visual Studio using our official extension.

IDEs

You can comfortably work with PeachPie in your favorite IDEs. Download our official Visual Studio extension, which makes working with PeachPie compiler as convenient as possible. The extension allows you to easily create a new project using our templates, build & debug, profile your PHP code using the VS diagnostic tools and deploy your project to Azure:

Peachpie Extension

You can also use VS Code or Rider to build and debug PeachPie projects.

Command line building

Alternatively, you can also work with PeachPie on the command line. Please refer to our short introduction video to see how to run the compiler on the command line and to the Getting Started section in our documentation.

Nightly builds

The most convenient way of using PeachPie is to consume NuGet packages. We provide nightly builds and release builds to our subscribers on Patreon. Become a Patron to get access and get listed as our sponsor!

Status and Compatibility

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. To see the current status of compatibility with the PHP language, please refer to our Compatibility overview.

How to contribute?

PeachPie is an open source project we maintain in our spare time. We can use all the help we can get. If you believe you have valuable knowledge and expertise to add to this project, please do not hesitate to contribute to our repo via pull requests or issues – your help is much appreciated.

However, please read the Contribution Guidelines first and ensure you are following them. Also, we kindly ask you to respect our Code of Conduct when posting or interacting with other users.

You can also support the project on Patreon, which gives you access to all kinds of perks!

Providing feedback

If you found a bug, have a question or if you have an improvement suggestion, the easiest way of providing feedback is to ask on Discord or submit an issue here on GitHub. We try to respond as quickly as possible.

.NET Foundation

.NET Foundation
This project is supported by the .NET Foundation.