Using C# class library from PHP
4 posts
• Page 1 of 1
Using C# class library from PHP
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.
- 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.
You do not have the required permissions to view the files attached to this post.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Using C# class library from PHP
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.
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.
- ginnisingh
- Posts: 1
- Joined: April 16th, 2013, 9:06 am
Re: Using C# class library from PHP
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?
- Dewey
- Posts: 6
- Joined: July 9th, 2013, 11:34 pm
Re: Using C# class library from PHP
It would, please let us know how does it work in your case.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?
Thanks
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
4 posts
• Page 1 of 1
Return to PHP/C# interoperability
Who is online
Users browsing this forum: No registered users and 1 guest