3 ms·
Looks inspired by Rails. However, if you like the approach of Rails, why not just use Rails? It's similar to people who put the OSX skin on their Windows machi
by melvinram 15y ago
Looks inspired by Rails. However, if you like the approach of Rails, why not just use Rails? It's similar to people who put the OSX skin on their Windows machines. If you like the OSX look, use OSX.
PS: I get there are many reasons to use PHP over Ruby, just as there are many reasons to use Windows over OSX. I'm just making a point by going to the extreme.
- alinajaf 15y agoFor a long time I experimented with PHP frameworks to see if I could capture the rails magic, but so much of it has nothing to do with the code/API itself (and more to do with the culture and community around the technologies). I'm now a full-time rails dev and hope that I will never have to use PHP again.
- there 15y agoi do rails and php and frequently switching between the two made me write halfmoon (https://github.com/jcs/halfmoon https://github.com/jcs/halfmoon). it's basically a tiny framework for php that has a syntax like rails (where php allows it - php 5.4's new short array syntax should clean things up quite a bit once it comes out). it uses an existing php port of activerecord (http://phpactiverecord.org http://phpactiverecord.org) so all of the finders, associations, and validations work much the same. as you can see by the code, it doesn't aspire to be a full port of rails, but it does routing, controllers, models, and views similarly enough. it's probably closest to the syntax of rails 2.2. i use it in production for a handful of low-traffic sites (http://hntrades.com http://hntrades.com, http://4m.blandroid.org http://4m.blandroid.org, http://domainical.org http://domainical.org) and mostly hack on it when i'm working on a project and need a new feature or find a bug. it doesn't have any community or documentation outside of the README, but the project works well enough to keep me sane when i'm writing php.
- alinajaf 15y agoI'm genuinely interested in your reason for not just using rails full-time. Is it because of the perceived deployment difficulty?
- there 15y agosometimes the project needs to use existing php libraries or code, sometimes it needs to be portable and php is easier to host and maintain, and sometimes i just don't want to deal with setting up and maintaining another rails site.