Skip to content
0:00 / 0:00

#peachpie#.net-core#interoperability

Advanced PHP/C# Interoperability with Peachpie Compiler

PEACHPIE

395 subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • Linked in the descriptioniolevel/peachpie-samples
  • Made by the vendor. The company whose product it covers made or sponsored it.

Intermediate. Assumes working knowledge.

7K views9 years ago1 recommendation

Programming languagesSystems programmingCompilers and interpretersPHPC# and .NET

This tutorial shows how to compile PHP into .NET Core using Peachpie to enable seamless interoperability with C#.

The tutorial on how to compile PHP into .NET Core and make use of Peachpie to seamlessly inter-operate between PHP and C# and how to enhance legacy PHP code with C#. Download the Peachpie extension for VSCode here: marketplace.visualstudio.com/items?itemName=iolevel.peachpie… GitHub sample repo: github.com/iolevel/peachpie-samples [] Sample PHP app [] Debugging PHP code [] Arrays [] Interoperability between PHP and C# [] Injecting the C# lambda function into the PHP Context [] Working with Peachpie programs [] Simulating an Inclusion [] C# class inheriting a PHP class [] Checking compiled PHP in ILSpy

Why it's here

1 person recommends this

What people say. Recommended as a way to run PHP code within .NET projects instead of converting it to C#.

Jakub Míšekon Stack Overflow • Recommends

On “php to C# converter”

Instead of converting (which would lead to an unmanageable spaghetti code), make the PHP project a regular .NET project (like F# or C++/CLI) using PHP compiler we're working on: https://github.com/iolevel/peachpie In this way, beside other things, you keep your PHP code maintainable while you can seamlessly use it from C#. Some resources: http://www.peachpie.io/ link to this video