Page 1 of 1

Using C# class library from PHP

PostPosted: January 25th, 2012, 2:44 pm
by Jakub Misek
This sample consists of two projects:
- PHP console application
- C# class library

Notice the PHP project references the C# project. Then you can seamlessly use all the C# goodies written in C# class library from within your PHP project.

Also put some breakpoints in PHP and C# code. It is really interesting how it jumps from one language to another without significant overhead.

Re: Using C# class library from PHP

PostPosted: April 16th, 2013, 9:16 am
by ginnisingh
Hi,

I have a PHP API with me which has different methods in it. I need to use that API from my C# code. Functions which are defined in api are login, add user, delete used, user details etc.

I installed phalanger and configured it on my VS 2010.

How Phalanger helpful in that and how can i access them using Phalanger.

Thanks.

Re: Using C# class library from PHP

PostPosted: July 9th, 2013, 11:49 pm
by Dewey
Would this work the same way if the class library was placed in the bin directory of a web app and used in php code?

Re: Using C# class library from PHP

PostPosted: July 10th, 2013, 11:54 am
by Jakub Misek
Dewey wrote:Would this work the same way if the class library was placed in the bin directory of a web app and used in php code?
It would, please let us know how does it work in your case.
Thanks