How to run PHP on Android with PeachPie

Posted on November 12, 2018, in category News, Tutorial, tags: , , , , , , , ,

One of the key advantages of PeachPie over its predecessor, Phalanger, is that we can also target .NET Core in addition to the full .NET Framework. This allows PeachPie-compiled PHP apps to run on all platforms .NET Core supports, which makes for some pretty funky possibilities.

... 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

How to Work With Plugins in WordPress on .NET

Posted on June 25, 2018, in category Information, Tutorial, tags: , , , , , , ,

One of the most frequently asked questions we get regarding WordPress on .NET is how to work with plugins. This tutorial will explain how to install plugins with the current state of PeachPie and how to get past some of the basic problems you might encounter.

... continue reading

Packing PHP into DLLs, EXEs or NuGets

Posted on April 29, 2018, in category Information, News, Samples, Tutorial, tags: , , , , , , , ,

Seeing PeachPie enables us to compile PHP code into .NET assemblies, wouldn’t it also be great to manage it as a package or a set of packages depending on each other? In this article, we outline some of the common practices and possibilities of building deployable packages with PeachPie using a .NET Core SDK or […]

... continue reading

Setting up MediaWiki on .NET with Peachpie

Posted on February 26, 2018, in category Announcement, News, Tutorial, tags: , , , , , , , , , , ,

The Peachpie compiler platform has already proven to be able to run massive real world applications without modifications. We have already tested WordPress, an older version of CodeIgniter and PHPUnit, but now it’s time for another massive PHP project: MediaWiki. What is Peachpie? Peachpie is a complete re-implementation of the PHP language to be executed […]

... continue reading

Fast caching across requests in PHP & .NET

Posted on November 7, 2017, in category Information, Tutorial, tags: , , , , , , ,

In this article, we’d like to describe something you can benefit from implicitly when using Peachpie compiler. Peachpie compiles PHP sources to regular .NET binaries, which gives us several features that are simply not available to regular PHP. An example of this is caching some data you don’t want to create with every single request […]

... continue reading

Food for Thought: WordPress Plugin in C#

Posted on October 24, 2017, in category Information, Tutorial, tags: , , , , , ,

WordPress is now entirely ready to be compiled to and executed on .NET with Peachpie. With this out of the way, this article will examine one of the great usecases of this endeavor – how to write a plugin for WordPress in C#.

... continue reading

Pre-compiled ASP.NET PHP Website

Posted on August 22, 2017, in category Information, Tutorial, tags: , , , , , ,

Traditionally, PHP websites are hosted on Windows using IIS or Azure, but this standard approach has a few well-known drawbacks. In this article, we will take a look at how Peachpie allows you to run PHP websites on the ASP.NET Integrated Pipeline and why this is desirable.

... continue reading

Packing PHP Libraries into NuGets

Posted on August 2, 2017, in category Tutorial, tags: , , , , ,

Packaging code libraries is a common way of providing and deploying a maintainable piece of code with an individual functionality. Packages are self-contained and their consumers usually don’t have to deal with their dependencies and requirements. In this article, we bridge two seemingly distant technologies and demonstrate how to pass a PHP library as a […]

... continue reading