spekulatius / PHPScraper

A universal web-util for PHP.

Home Page:https://phpscraper.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Idea: Implement low-level util to access the web.

spekulatius opened this issue · comments

E.g.

// GET request
$web->get('https://...');

// POST request
$response = $web->post('https://...', [
  'param' => 'first param',
]);

// ...

This could be done either directly in PHPScraper or built upon another specialized lib such as Symfony HTTP. Exposing the functionality of the existing dependency sounds like a reasonable way to go, if the idea is of interest.

This would replace the existing fetchAsset. No further implications have been considered so far.