|Stable release||126.96.36.19951 / January 2013|
|Written in||C#, C++/CIL|
|License||Apache License (Apache 2)|
Phalanger is a project which was started at Charles University in Prague and was supported by Microsoft. It compiles source code written in the PHP scripting language into CIL byte-code. It handles the beginning of a compiling process which is completed by the JIT compiler component of the .NET Framework. It does not address native code generation nor optimization. Its purpose is to compile PHP scripts into .NET assemblies, logical units containing CIL code and meta-data.
There was a project at Charles University to re-implement the Phalanger core using the Microsoft Dynamic Language Runtime, and to develop a Visual Studio integration tool to provide IntelliSense for the PHP language.
Though some features from DLR would slow down the performance of Phalanger, they do claim performance gains by a factor of 6. These features are being integrated into current Phalanger core.
Pure Mode in Phalanger allows the user to take the binaries out of the source and use edit Windows configuration files themselves. This allows you to export Phalanger to be used on systems where you do not necessarily want Phalanger to be installed. As of Version 3.0 of Phalanger running in Pure Mode may still require some run-time compiling but will drastically reduce the amount of time that the pages will load the first time that they are used.
Google Summer of Code
A project involving Phalanger was mentored by the Mono team during the Google Summer of Code program in 2008. During this period Phalanger was ported to the Silverlight 2.0 framework with the goal of making it work on Moonlight as well.
Early in 2008, UK Content Management vendor Jadu partnered with the Prague-based team to improve communication between .NET and the Phalanger compiler. It is based on duck typing and provides a way for accessing objects from the dynamic PHP world that lack compile-time type information from a statically typed language in a .NET environment in a type-safe way.
In December 2008, Jadu announced that it has made the compiler available to the developer community and in interviews with ITPRO and VNUnet said that the development would help close the skills gap between PHP and .NET.
Devsense support & development
In addition to maintenance and growth of the project, Devsense is providing Visual Studio integration of Phalanger for the community.
- Phalanger + Wordpress
- MediaWiki running on Phalanger
- phpBB: Creating communities twice as fast
- "Benchmarks". www.php-compiler.net.
- "Improvements in the Phalanger Project". www.php-compiler.net. 2008-07-01.
- "Phalanger takes advantage of DLR". 2011-08-01.
- "Google Summer of Code Application Information". 2007-04-21.
- Petricek, Tomas (2007-04-30). "Using PHP objects from C# in a type-safe way".
- Har-Even, Benny (2006-12-02). "Jadu gets PHP and .NET talking". ITPRO.
- Muncaster, Phil (2006-11-28). "Jadu brings PHP and .NET closer together". VNUnet.
- "Devsense offers Phalanger and commercial support". DEVSENSE.
- "Devsense provides Phalanger Tools". DEVSENSE.
- "DEVSENSE support". DEVSENSE.
- Phalanger PHP compiler blog
- Phalanger discussion forum
- Phalanger commercial support
- Wiki site for Phalanger PHP compiler
- Phalanger source control and issue tracker
- Official Web Page for previous version 1.0
- eWeek article about Phalanger
- Microsoft accommodates dynamic languages (article)
- Channel 9 Phalanger