Projects built with PeachPie depend on the PeachPie runtime, which targets .NET Standard 2.0. This makes it compatible with the vast array of other .NET frameworks and runtimes, as long as they are compatible with .NET Standard 2.0. This includes .NET Core 2.0, Mono 5.4, Xamarin.Android 8.0, or .NET Framework 4.6.1 or higher.

When compiling a library project to be referenced by other projects, it is always the best option to target the lowest .NET Standard makes it possible for the project to be referenced by a majority of .NET projects. In this case, it is netstandard2.0. Make sure you have the following property set in the project file:

Assuming the project with PHP files is compiled as a library, you can be targeting either netstandard2.0 or net461.

<TargetFramework>netstandard2.0</TargetFramework><AssemblyName>MyWebsite</AssemblyName><!-- an optional name -->

You can handle the requests to *.php pages on your ASP.NET (Integrated Pipeline) server (specifically IIS 7, IIS Express or Apache with mod_mono) in two ways; either by modifying web.config and passing requests directly to MyWebsite.dll, or by handling the requests programatically in your C# code.

In order to handle requests to compiled *.php pages, make use of the RequestHandler API. Obtain the instance of System.Web.HttpContext and pass it to the RequestHandler.ProcessRequest(HttpContext) method.