crawly/browser

v1.0.0 2019-09-17 20:16 UTC

This package is auto-updated.

Last update: 2024-11-29 05:33:34 UTC


README

Lib that returns headers to simulate a browser

  • User-Agent
  • Accept-Language
  • Accept
  • Accept-Encoding
  • Connection
  • Accept-Charset
  • Pragma
  • X-Requested-With
  • Upgrade-Insecure-Requests

Install

composer require crawly/browser

Usage

$browser = new Browser();
$headers = $browser->getHeaders();

Additional Headers

$browser = new Browser();
$headers = $browser->getHeaders([
    'Referer' => 'http://test.org'
]);