Using C# in PHP and Vice Versa

Posted on February 5, 2019, in category Information, Tutorial, tags: , , ,

Interoperability is one of the most valuable use cases of PeachPie: using C# (.NET) classes, interfaces and methods right in PHP code and vice versa. Let’s take a look at individual cases and how to achieve interop with PeachPie.

... continue reading

PeachPie extension for Visual Studio

Posted on November 19, 2018, in category Announcement, Information, News, tags: , , , , , , , , , , ,

We’ve had an extension for the lightweight VS Code IDE for quite some time, but now was as good a time as ever to create one for the full Visual Studio.

... continue reading

Release 0.9.11 and Visual Studio

Posted on October 2, 2018, in category Announcement, News, tags: , , , , , ,

We’re happy to announce version 0.9.11 of PeachPie – the PHP compiler and runtime for .NET and .NET Core. This update introduces a lot of new features, compatibility enhancements and improvements for the project management.

... continue reading

PHPDoc, XMLDoc, and IntelliSense

Posted on August 22, 2018, in category Information, tags: , , , , , , , , ,

Well-documented code should be a given nowadays. In the world of PHP, the standard for documenting is the so-called PHPDoc, whereas .NET uses XMLDoc. In this article, we’ll take a look at how all this is connected with PeachPie.

... continue reading

Render a Razor Partial View on a PHP page

Posted on August 7, 2018, in category Information, Tutorial, tags: , , , , , , , , , ,

We discussed rendering a PHP file in a Razor View last week, but this week we’ll push the boundaries of interoperability between PHP and ASP.NET even further. What if we enriched a PHP website with Razor Partial Views coded in a C# project (those with the .cshtml extension)?

... continue reading

Rendering PHP files in Razor Views

Posted on July 31, 2018, in category Information, News, Tutorial, tags: , , , , , , , ,

Much has been said about the interoperability options PeachPie opens up between PHP and .NET code. One of the most practical use cases is combining Razor and PHP Partial Views, which is what today’s article will be about.

... continue reading

First WordPress benchmark

It’s been a while since we produced any benchmarks, so it’s time to put Peachpie to the performance test again. And it’s not going to be a small one – this time, we will benchmark an entire real world application in WordPress.

... continue reading

Maintaining backward compatible Peachpie and PHP code simultaneously

Posted on January 18, 2018, in category Information, tags: , , , , , , , ,

When you consider transforming your PHP code to .NET using Peachpie, you’ll probably worry about backward compatibility and the development process itself, or whether you can maintain both platforms within a single code base. Here is why you don’t have to.

... continue reading

Introducing Peachpie 0.9

Posted on January 16, 2018, in category Announcement, News, tags: , , , , , , , ,

Lots of changes have been made to the Peachpie project this year already. So much so that we reached the next milestone in our roadmap and thus upped the version to 0.9. This article will explain what’s new and what’s still to come.

... continue reading

PHP on .NET Standard 2.0

For those of you who are hearing about Peachpie for the first time, the title of this article may seem even crazier than it does for the others. We are happy to announce that our project now allows you to compile PHP code directly for .NET Standard 2.0, which has a number of outrageous consequences.

... continue reading