Micro-framework in PHP with a widget approach