I am trying to use SEOstats php package in laravel, I've installed it using composer and then in my controller I have used it like below :
use SEOstats\Services as SEOstats;
class ReportageController extends Controller
{
public function store(Request $request)
{
$url = 'http://www.google.com/';
// Create a new SEOstats instance.
$seostats = new \SEOstats\SEOstats;
// Bind the URL to the current SEOstats instance.
if ($seostats->setUrl($url)) {
dd( SEOstats\Alexa::getGlobalRank());
}
}
}
The problem is I'm getting this error message :
Class 'SEOstats\SEOstats' not found
I've changed namespaces to different types but still getting this error. Any suggestion how to make it work in laravel 5.3