Using PHP objects from C# in a type-safe way

I don’t do much (if anything) in PHP, but I ran across this article as a StackOverflow answer. It illustrates how you can use PHP classes/objects in C#. Pretty good to know if there is something cool in PHP that I could possibly use it in C#.