eyecatchup / SEOstats

SEOstats is a powerful open source PHP library to request a bunch of SEO relevant metrics.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call to undefined function SEOstats\Config\env()

fbarrento opened this issue · comments

I get this error when trying to access the GooglePageSpeesAnalysis

$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

Same issue here.

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