move types and php generation lib