generators for PHP and Javascript specific classes