/** * To respond against any request we may need to prepare out data and check data integrity */ protected function prepareData() { $Scraper = new Scraper(); $data = $Scraper->scrapData($this->url); return $data; }
<?php include "library/Scraper.php"; $scraper = new Scraper(); $scrapData = $scraper->scrapData('http://www.dsebd.org'); var_dump($scrapData);