Generate ninja files using PHP code.