side-menu-generator-and-handler is a set of PHP classes that generate hierarchical menus defined in XML files. They read given XML configuration file with a definition of a hierarchy of menus. The classes generate nested HTML lists and JavaScript code to present the defined menus in a Web page. The texts used in the menus can be read from a database using a separate localization class. The JS object can manage hierarchical menus of HTML content sections. It can register event handlers to listen to clicks on menu entry icons that make sub-menus expand or collapse. The object can also make content be loaded when menu entries are clicked.