Out of curiosity, but is there a design-reason why the controller names are tied (by naming convention) to HTTP convention? i.e. public static function show_GET($params=null) { self::render('show',array("layout" => "default")); } public static function index_POST($params=null) { self::redirect('/auction/show'); } As opposed to how Rails does it (controllers are defined in their own file and associated with a HTTP pro…
This was a short term approach. The plan is to get to a routing file approach.
Show HN: Rails-Inspired PHP Framework
21–30 of 46 posts
Re: Show HN: Rails-Inspired PHP Framework
#22Rails became popular despite few people knowing Ruby because it took full advantage of the language's expressiveness and ergonomics and had innovative abstractions.
Today we're slowly shifting towards things like Meteor, which combine back-end and front-end development and make it super simple to write dynamic single page web-apps.
The primary issue with your framework is that the PHP ecosystem is already saturated with traditional MVC frameworks. Most experienced web developers who care about their craft have been shunning PHP for a while now [1], and those who do use PHP will probably stick with a more stable, documented and in-demand framework like CakePHP.
The pragmatic thing to do would be to contribute to your favorite framework instead of making a new one, unless you can start something that boosts productivity in a unique way. Contributing doesn't have the same glamour as leading your own thing, but remember that this is open source -- we're all on the same side.
[1] http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-de...
Re: Show HN: Rails-Inspired PHP Framework
#23I started my own php framework as an experiment (no public repo yet.) I'll have to try this out and see how it works.
Apart from being 'rails inspired' what problems specifically are you trying to solve with this?
Re: Show HN: Rails-Inspired PHP Framework
#24EDIT: Other tip for the readme: change the name to README.md and Github will render your Markdown formatted readme properly.
Re: Show HN: Rails-Inspired PHP Framework
#25Or in other words, neither reinvent the wheel nor ignore its existence.
Alternatively, since innovation isn't generally rooted in conformity, have some kind of reason to ignore all of the above.
Re: Show HN: Rails-Inspired PHP Framework
#26Good luck with this. I started my own php framework as an experiment (no public repo yet.) I'll have to try this out and see how it works. Apart from being 'rails inspired' what problems specifically are you trying to solve with this?
Looking forward to seeing your public repo, apparently you can get a great discussion going on HN by putting it out there :)
Re: Show HN: Rails-Inspired PHP Framework
#27Just so if any one is interested, yet another php framework: https://github.com/oguzbilgic/hivli
Re: Show HN: Rails-Inspired PHP Framework
#28Earlier quoted context omitted.
This was a short term approach. The plan is to get to a routing file approach.
Ah good to know. Wasn't being completely snarky...I'm interested in how the difference between Ruby/PHP imposes different constraints/style in how opinionated the framework can be. Good luck!
Re: Show HN: Rails-Inspired PHP Framework
#29Good luck with this. I started my own php framework as an experiment (no public repo yet.) I'll have to try this out and see how it works. Apart from being 'rails inspired' what problems specifically are you trying to solve with this?
Thanks! This also started as an experiment with the goal of being very lightweight and simple to get started with. Looking forward to seeing your public repo, apparently you can get a great discussion going on HN by putting it out there :)
I guess people will need another excuse to post Veekun's manifesto.
It's not 'rails inspired' though since I don't know Ruby/Rails.