\n"; exit(0); } $wappalyzer = new Wappalyzer($url); $detectedApps = $wappalyzer->analyze(); if ( $detectedApps ) { foreach ( $detectedApps as $detectedApp => $data ) { echo $detectedApp . ', ' . $data->confidence . '%, ', implode(', ', $data->categories) . "\n"; } } else { echo "No applications detected\n"; } exit(0); } catch ( Exception $e ) { echo $e->getMessage() . "\n"; exit(1); }