Create getPatterns.php