spekulatius / PHPScraper

A universal web-util for PHP.
https://phpscraper.de
GNU General Public License v3.0
509 stars 73 forks source link

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

Open spekulatius opened 1 year ago

spekulatius commented 1 year ago

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.

spekulatius commented 1 year ago

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