Zend或Symfony哪个内存占用空间较小

While i'm not questioning which one is better than which,while i recognized their strong areas.this question is simply to help me decide on which one to use for a simple project with requires a very small memory foot print.

So that's about it. Who has a better insight when it comes to that? Thanks for reading this

i would choose neither for a simple / smaller project. Choose Codeigniter, it's easier to setup and it's one of the lightest resources intesive wise.

If your project really is simple, your best option is a microframework, like Silex. It is a PHP microframework for PHP 5.3. It is built on the shoulders of Symfony2 and Pimple and also inspired by sinatra.

A microframework provides the guts for building simple single-file apps. Silex aims to be:

  • Concise: Silex exposes an intuitive and concise API that is fun to use.
  • Extensible: Silex has an extension system based around the Pimple micro service-container that makes it even easier to tie in third party libraries.
  • Testable: Silex uses Symfony2's HttpKernel which abstracts request and response. This makes it very easy to test apps and the framework itself. It also respects the HTTP specification and encourages its proper use.

In a nutshell, you define controllers and map them to routes, all in one step:

require_once __DIR__.'/silex.phar'; 

$app = new Silex\Application(); 

$app->get('/hello/{name}', function($name) use($app) { 
    return 'Hello '.$app->escape($name); 
}); 

$app->run(); 

All that is needed to get access to the Framework is to include silex.phar. This phar (PHP Archive) file will take care of the rest.

(most content taken from Silex's homepage)