Leverage the best of both worlds and build .NET apps with C# and PHP.
PeachPie allows for both-way interoperability between PHP and any .NET language, which enables you to seamlessly integrate libraries from either language into your application. You can therefore utilize libraries from either ecosystem that best suit your particular needs or inter-connect your application stack if it consists of both PHP and .NET. Instead of using costly API calls, marshaling, or roundabout integrations, you can natively use PHP apps or libraries within .NET or vice versa.
Having both C# and PHP projects together within a single .NET solution allows for seamless interoperability and continuous development. One project can leverage on the other one or vice versa. Moreover, the PHP application can take advantage of NuGet dependencies, providing it with thousands of high-performant well-tested components.
On the other side, all the work already implemented in the PHP project gets available to the .NET solution. Developers appreciate the full-blown IntelliSense, just like that:
The integration is well understood by the .NET toolchain. From the C# developers’ perspective, they don’t have to even notice there was PHP at all.
This approach allows you to re-use all of the PHP libraries in the .NET application or it allows you to provide an existing PHP application to the new .NET customers.
Moreover; the PHP project understands .NET dependencies as well. This allows extending the existing PHP applications with the use of .NET components.
Seamlessly port your legacy PHP code to the modern, cross-platform, lightning-fast .NET Core.
PeachPie allows you to migrate PHP code to the modern, fast and secure .NET platform while keeping all of the application and business logic intact. As a result, you can switch to .NET significantly more quickly and in a less risky matter, and you can gradually replace portions of your legacy PHP app with C# to migrate over to .NET or .NET Core step by step. Since PeachPie is backward compatible with older versions of PHP, it also enables you to utilize constructs from PHP 7+ in your legacy PHP 5 code.
The existing PHP codebase will run on top of the .NET stack, including Azure Cloud, ASP.NET server providers, integration with C# projects, and eventually making use of analytics like Application Insights. The development process will transform into the use of .NET development tools and runtime. There won’t be any native PHP runtime on the server or your development machines at all.
Moreover, source files won’t have to be published to the server anymore, and therefore they will be kept in private. Since PeachPie introduces the compilation phase to the PHP application, the project is built, the entire code gets diagnosed, validated, and eventually strongly signed.
This process is natively supported by Azure DevOps, Microsoft Visual Studio, .NET CLI, and other .NET development platforms.
Build, debug, profile and diagnose your code in the family of .NET tools, including Visual Studio and VS Code.
Take advantage of the powerful .NET tooling and ecosystem that naturally becomes available to you when you develop on top of the PeachPie platform. Thanks to PeachPie, you can debug and profile your PHP code right in Visual Studio, VS Code, or Rider and get insightful diagnostics during design time. Your PHP code is compiled into a DLL file and may be packed into NuGets, which can be distributed securely without the source code itself.
With the PeachPie project, .NET tooling will understand your PHP code. The project can be opened in Visual Studio, or built on the command line with .NET CLI.
Continuously building the project reveals diagnostics with detailed information.
This process is well supported by .NET continuous integration platforms like Azure DevOps, AppVeyor, and by .NET development tools like Visual Studio.
Since the PHP application runs natively on .NET, developers will take advantage of the entire diagnostic tools, performance profiling tools, exception handling, analytic tools, debugger, and remote debugging capabilities.