kadejayak / web-spider
Simple Website spider tools, to get all links on web pages
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kadejayak/web-spider
This package is not auto-updated.
Last update: 2025-11-03 19:29:49 UTC
README
This is simple website spider class written in PHP, it can be used to extract links from a website recursively.
Installation
Just download this class and include on your project. or by using composer
composer require kadekjayak/web-spider
##Requirements
- PHP curl
Example
the basic example to get all links from a website
use Kadekjayak\WebSpider;
$Spider = new WebSpider();
$Links = $Spider->scrape('http://example.com', $depth = 2);
print_r($Links);