eyecatchup / SEOstats

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

Add ReportType = 0 on Semrush Service. #106

Open LeFrenchie opened 9 years ago

LeFrenchie commented 9 years ago

Hello,

In the code, you can choice report type between 1 and 5 but it exist number 0.

in /SEOstats/Services/SemRush.php Line 152

Change if ($reportType > 5 || $reportType < 1) {

After if ($reportType > 5 || $reportType < 0) {

And add in documentation report type 0 (Numbers of Keywords).

exemple : http://www.semrush.com/archive/graphs.php?domain=semrush.com&db=us&type=0

Thx.

eyecatchup commented 9 years ago

Thanks for your report. I'll change that.