crawly / browser
Installs: 4 188
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.15
- phpmd/phpmd: ^2.7
- phpstan/phpstan: ^0.11.15
- phpunit/phpunit: ^8.3
- sebastian/phpcpd: ^4.1
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'
]);