Class 'SEOstats\SEOstats' not found when calling SEOStats instances in laravel 5.3
问题 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