I do a fair amount of scraping in Laravel, and it always splits into two worlds. Guzzle for the pages that are just HTML, and a mess of Puppeteer scripts shelled out from PHP for the ones that render in JavaScript. Two toolchains, two mental models, glue in between.

Larascraper collapses that into one. You write a class, you describe what you want, and it runs through a real headless browser or plain HTTP with the same code. This post walks through the whole thing.

How to Install

composer require edulazaro/larascraper

Enter fullscreen mode