Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 863 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 863 Bytes

Laravel 9 web scraping

Roach PHP is a complete web scraping toolkit for PHP. Not only does it handle the crawling of web content, but it also provides an entire pipeline to process scraped data, making it an all-in-one resource for scraping web pages with PHP.

https://roach-php.dev/docs/introduction/
https://github.com/roach-php/core

Instead of installing the core Roach package, we are going to install Roach’s Laravel adapter.

composer require roach-php/laravel

We can also publish the configuration file that comes with the package.

php artisan vendor:publish --provider='RoachPHP\Laravel\RoachServiceProvider'

This will publish a roach.php configuration file to our app’s config folder.

Screenshot 2022-11-26 111342