eyecatchup / SEOstats

SEOstats is a powerful open source PHP library to request a bunch of SEO relevant metrics.
MIT License
1.46k stars 383 forks source link

Call to undefined function SEOstats\Config\env() #146

Open fbarrento opened 7 years ago

fbarrento commented 7 years ago

I get this error when trying to access the GooglePageSpeesAnalysis

merajsiddiqui commented 7 years ago

$dotenv = new Dotenv\Dotenv('path to your .env'); $dotenv->load(); function env($config, $default) { $config_value = getenv($config); if(is_string($config_value) && (strlen(trim($config_value)) > 0)) { return $config_value; } else { return $default; } }

All you need to write this code where you are calling the Google Page Speed Analysis

barryvdh commented 7 years ago

Fix in https://github.com/eyecatchup/SEOstats/pull/150

fnagel commented 7 years ago

Same issue here.

aw73 commented 7 years ago

Same issue with examples : get-mozscape-metrics.php or get-google-pagespeed-analysis.php