get("https://feshun.mv/feed")["channel"]["item"]; $articlesitems = []; //Looping through the articles and scraping and while scraping it creates a new instance of the scraper. foreach ($articles as $article) { $articlesitems[] = (new FeshunScraper)->extract($article['link'], $article['pubDate']); } return $articlesitems; } }