PHP unit testing on .NET, naturally

Posted on November 19, 2020, in category Information, Tutorial, tags: , , , ,

Testing is an essential part of software development. On .NET, we are used to the certain comfort and simplicity of managing our tests, running them, debugging them, collecting reports, profiling, and keeping track of the code coverage, within a single click. Does this work with PHP on .NET as well?

... continue reading

Targeting a library for both PHP and .NET

Posted on November 14, 2020, in category Information, Tutorial, tags: , , , ,

There is a massive amount of libraries and frameworks written in PHP, providing useful functionalities, some even commercially. You may have come across libraries, such as PDF generators, the Twig templating engine, random data generators, etc. Let’s take a look at how to develop the library for both PHP and .NET, so that C# developers […]

... continue reading

Autoloading redefined and composer.json

Posted on May 31, 2020, in category Information, tags: , , , ,

Autoloading is an essential part of PHP applications, required due to the nature of PHP itself. The common standard defined by the “composer dependency manager” is used across the majority of frameworks and components, and as explained on the documentation page, autoloading can eat up as much as 100ms of request time. Let’s have a […]

... continue reading

How’s WordPress even running on .NET?

Posted on May 2, 2020, in category Information, tags: , , ,

You may have come across the fact that we managed to run WordPress on .NET. In this article, we take a look at what’s under the hood and we’ll examine some of the obstacles and the technical solution behind this project.

... continue reading

Creating an Executable Console Application in PHP

Posted on March 15, 2020, in category Tutorial, tags: , , , ,

There are a few tools out there that allow you to create an executable console application in PHP, but they tend to be a little heavy and limited to a certain OS. With PeachPie, console apps can be created straightforwardly, without having to distribute the sources, and it can be debugged right in Visual Studio.

... continue reading

PeachPie 0.9.920

Posted on March 14, 2020, in category Announcement, News, tags: , , , , ,

With over 400 changes, it was time for the next major release of the PeachPie platform. During the past months, we have focused on improving the compatibility with several standard PHP applications and frameworks, and on the integration with toolings such as Visual Studio.

... continue reading

Debugging PHP eval() in Visual Studio

Posted on March 4, 2020, in category Information, Tutorial, tags: , , , , , ,

Evil eval() is back for a third edition – this time we’ll take a look at it from a more user-friendly perspective: debugging in Visual Studio.

... continue reading

Define compile-time constants in PHP

Posted on March 3, 2020, in category Information, tags: , , , ,

PHP programs are full of global constants that are defined over and over during the runtime even though their value doesn’t change. In this article, we’re describing a way to tackle this potential performance bottleneck.

... continue reading

The ultimate guide to migrating a PHP project to .NET with PeachPie

Posted on December 1, 2019, in category Information, Tutorial, tags: , , , , , , , ,

PHP is an incredibly rich ecosystem, but with the growing popularity of .NET Core, you may want to combine these two worlds. Let’s take a look at how we migrate a PHP project to .NET with the help of VS Code and PeachPie.

... continue reading

What’s new in PeachPie 0.9.46

Posted on September 16, 2019, in category Information, News, tags: , , , , ,

There have been some major additions and overhauls in PeachPie lately in preparation for version 1.0, so we decided to ship one more release before we set our sights on the final preparations before the first major stable version. What happened since 0.9.45 Just in case you don’t know, PeachPie is a modern PHP compiler […]

... continue reading