Live data from Hacker News

Show HN: Rails-Inspired PHP Framework

github.com

21–30 of 46 posts

Re: Show HN: Rails-Inspired PHP Framework

#21
post #17

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.

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

#22
Instead of focusing on making a PHP framework that's like Rails, you should focus on "how can I boost developers' productivity in a unique way?" This is how libraries and frameworks become popular. If you try to model your software after existing software, it'll only ever be second-best, at best.

Rails 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

#23
Good 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?

Re: Show HN: Rails-Inspired PHP Framework

#24
It's a good idea to use example.com domain in example URLs instead of mysite.com or other "real" domains.

EDIT: 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

#25
If you want any new framework in PHP to be taken seriously I would start with a) a new concept instead of just another Rails-clone, and b) adhering to common standards and practices (tests, namespaces, PSR, Composer, etc).

Or 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

#26
post #23

Good 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 :)

Re: Show HN: Rails-Inspired PHP Framework

#28
post #21

Earlier 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!

Thanks!

Re: Show HN: Rails-Inspired PHP Framework

#29
post #23

Good 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 :)

Well since I am technically running my site with it (which i'm also not posting since it's just some bootstrap pages right now) I should probably get around to it sooner or later...

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.

Post reply on HN