Write .NET Applications in PHP
Say what?!

That's right, you heard me! It's all thanks to a fantastic project called Phalanger, which adds a super-fast execution environment for a very large portion of the PHP scripting language. Certainly this was only a matter of time, combining one of the most popular open-source languages of the web with one of the most powerful enterprise-grade frameworks.
One of the coolest things about Phalanger is the way it allows you to decide how to implement PHP syntax. There is almost no barrier to entry, as it is designed to implement PHP the same way it is handled natively, but also allows you to use PHP syntax in an ASP.NET application just as though PHP was simply another option among VB.NET and C#.
I'll admit I have yet to take a crack at it, but having worked with both .NET and LAMP technologies I can't help but imagine the possiblities. SiteCrafting in particular could benefit from this tremendously, allowing our PHP devs to easily port PHP-based solutions into some of our existing .NET projects. It also means essentially all of our developers could make contributions to a .NET project if the need arose.
I should warn Phalanger is still in it's beta phase, and has not yet fully implemented the entire PHP language and common libraries. Though it may not be enterprise-ready yet, I see good things ahead.
Link: Phalanger
Link: Tutorials
One of the coolest things about Phalanger is the way it allows you to decide how to implement PHP syntax. There is almost no barrier to entry, as it is designed to implement PHP the same way it is handled natively, but also allows you to use PHP syntax in an ASP.NET application just as though PHP was simply another option among VB.NET and C#.
I'll admit I have yet to take a crack at it, but having worked with both .NET and LAMP technologies I can't help but imagine the possiblities. SiteCrafting in particular could benefit from this tremendously, allowing our PHP devs to easily port PHP-based solutions into some of our existing .NET projects. It also means essentially all of our developers could make contributions to a .NET project if the need arose.
I should warn Phalanger is still in it's beta phase, and has not yet fully implemented the entire PHP language and common libraries. Though it may not be enterprise-ready yet, I see good things ahead.
Link: Phalanger
Link: Tutorials



Wow! If you can port in PHP, I wonder if you could port in JavaScript similar to Rhino? I had a class recently where I had to do some .NET stuff, and _man_ would this have made it easier. I would love to see how the ASP controls interact with the PHP code.
Left by Paul | Jun. 16, 2008 at 9:31am
There is a few JS.NET (among tons of others like Perl and LISP) implementations listed at http://dotnetpowered.com/languages.aspx.
Left by Steve | Jun. 16, 2008 at 7:12pm
Leave a Comment