Recursively extract all website inbound links
composer install
$baseurl = 'https://www.bbc.co.uk/food';
$linkStorage = new DBLinkStorage(__DIR__ . '/resources/database');
$extractor = new LinkExtractor($baseurl, $linkStorage);
$extractor->run();Check /rakibtg/SleekDB documentation how to make queries
There is a build in storage DBLinkStorage based on NoSql database /rakibtg/SleekDB for this library but you can implement a different storage by implementing LinkStorageInterface
This step should be done only once in you local machine:
cd tests/server/
npm install
node tests/server/server.js
vendor/bin/phpunit