Metastorage is a PHP data access object generator compiler tool. It implements an object persistence API from a description in an XML format named CPML. The persistent object classes implement object-relational mappings, so developers do not have to write SQL manually. It features an object query language for specifying conditions for querying objects, generation of classes for producing reports, generation of classes to manage templated Web forms for creating new persistent objects, and generation of UML class diagrams. It can be run from the command line or from a Web interface.