A PHP & React based framework for building web applications

Easy React SSR (Server-Side-Rendering)

$controller = Controller::get('mod-website/react-renderer');

$bundle = $controller->load_bundle(__DIR__ . '/../views/build/bundle.js');

$component_props = ["hello" => "world!"];

$render = $bundle->generate_markup(
   'Website' ,
   $component_props
);

echo $render;

Simple ORM

class Sale extends \Axe\ORM {
   
   public static function allowed_fields() {
      return array(
         "deliveryStatus",
         "date",
         "customerId",
         "customerAddresses" => Address::get_allowed_fields(),
         "productsSold"      => Product::get_allowed_fields()
      );
   }
}

Search method to retrieve from DB

Sale::search([
   "where" => [
      "sql" => "id = ? OR customerId = ?",
      "params" => [233 , 8675]
   ],
   "fields" => [
      "date",
      "customerId",
      "customerAddresses",
      "productsSold"
   ]
]);

Optional HMVC for modularity

// get LoginForm (child of Website module)
\Axe\Controller::get("mod-website/mod-login-form")->index("some param");
 
// get Blog module's controller
\Axe\Controller::get("mod-blog")->index("some param");