Tutorial :SubSonic ports for unix use?



Question:

I'm curious if there are any SubSonic ports for use with php on a unix environment. I'm using SubSonic at work and I love it, and I'd like to create a MySQL database on a FreeBSD server and talk to it using php. I was hoping to use SubSonic again, but I'm not sure if there are any versions of it that work with php.

Are there any versions of this out there, or similar products to subsonic that work in php?


Solution:1

Unfortunately, I'm not aware of any direct ports of SubSonic to Unix. If you're not set on PHP, you could always try .NET running on Mono - that will give you SubSonic as is. Ruby on Rails is a second option - if I remember correctly, it served as inspiration for many of Subsonic's features.

If you're really set on PHP, you can always try Doctrine. I've never used it, but I've heard reasonable things about it. Propel is another option. If you're not opposed to full frameworks, I Symfony, CakePHP, and CodeIgniter all have some sort of ActiveRecord implementation.


Solution:2

SubSonic is definitly a .Net only project. I have used SubSonic with Mono to run a blog with a MySql back end on an OpenSuse Linux machine with Apache and found that SubSonic worked well. If you are stuck on PHP you could just create a webservice with Mono and SubSonic and then call your webservice from PHP or even from JSON if you set your web service up to handle JSON.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »