framework icon indicating copy to clipboard operation
framework copied to clipboard

What different of other frameworks?

Open mcddx330 opened this issue 8 years ago • 4 comments

Hello.

I'm finding some PHP7 frameworks and see some benchmark pages. This framework looks like so fast. amazing. but I don't know other features...

So what key points of this framework? now I'm planning use to lumen because I'll make not too big product.

mcddx330 avatar Apr 28 '16 09:04 mcddx330

Hi, Thanks for your interest!

Ice really is quite different compared to the other frameworks; it isn’t just another package that you download, rather it’s a PHP module written in C like Phalcon, so you need to download a binary package for your platform or compile it from source code. It's similar to Phalcon #62, but more light. The advantage is speed, the downside is that not everything is documented, but you have the api.

I encourage you to try it ;)

mruz avatar Apr 28 '16 11:04 mruz

Thank you reply!

Now I trying ice and read the doc, but routing doesn't work. (always show index page on hello). I using h2o and rewrite is working on lumen. I'll use this framework if it's work cause so fast and easy to write. So what can i do this problem? or ice isn't work on h2o?

mcddx330 avatar Apr 29 '16 14:04 mcddx330

You need to add rewrite rule (mruby? https://github.com/h2o/h2o/issues/740):

Example for nginx:

rewrite ^/(.*)$ /index.php?_url=/$1;

For apache:

RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]

or set base uri /index.php?_url=/ in the App/Bootstrap.php, but it's not pretty (hello/index.php?_url=/user)

$di->set('url', function () {
    $url = new \Ice\Mvc\Url();
    $url->setBaseUri('/index.php?_url=/');

    return $url;
});

mruz avatar Apr 30 '16 05:04 mruz

I challenged on h2o, but doesn't work it... Base url setting is worked. but yes, it is not pretty. So i will use with nginx. thanks for helping :)

mcddx330 avatar May 08 '16 16:05 mcddx330