Simple, yet flexible ORM

<?php         $trees_with_their_apples = Tree::search($search_settings = array(         "where" => array(         "sql" => 'height > ?' ,         "params" => array(50)      ) ,      "sort" => array(         "height DESC"      )      "fields" => array(         "height" ,         "color"  ,         "Apples"       => $child_apples_search_settings ,         "RottenApples" => $child_rotten_apples_search_settings      )   )) ;      class Tree extends \Axe\ORM {         public static function allowed_fields() {         return array(            "type"   ,            "color"  ,            "height" ,            "Apples"       => Apple::get_allowed_fields() ,            "RottenApples" => Apple::get_allowed_fields()         );      }   }      class Apple extends \Axe\ORM {         public static function allowed_fields() {         return array(            "rotten" ,            "size"   ,            "color"         );      }   }      $child_apples_search_settings = array(      "where" => array(         "sql" => 'tree_id = ?' ,         "params" => array('$id')      ) ,      "fields" => array(         "tree_id"      )   ) ;      $child_rotten_apples_search_settings = array(      "where" => array(         "sql" => 'tree_id = ? AND rotten = ?' ,         "params" => array('$id',1)      ) ,      "fields" => array(         "tree_id" ,         "rotten"      )   )
 

HMVC for Modularity

<?php    namespace Website\Controllers ;    class __Main extends \Axe\Controller {       // Home page      public function index() {                return $this->get_view(            $view_name = "website" ,            $params = array(               "header" => $this->get_view("header",array(                  "title"        => "Home Page" ,                  "stylesheets"  => array("/style/home.css") ,                  "login_form"   => \Axe\Controller::get("mod-website/mod-login-form")->index("some param") ,                  "latest_posts" => \Axe\Controller::get("mod-blog")->latest_posts() ,                  "footer"       => $this->get_view("footer")            )         ) ;      }      }
 

HMVC - Widgetization

<?php echo $header ; ?><main>   <h1>Welcome to my Home Page!</h1>   <p>Here is some text for you...</p>      <?php echo $login_form ; ?>   <?php echo $latest_posts ; ?>      <p>Here is some more text</p></main><?php echo $footer ; ?>