PHPackages                             sapistudio/http - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. sapistudio/http

ActiveLibrary[HTTP &amp; Networking](/categories/http)

sapistudio/http
===============

4.1.5(4y ago)01072MITPHPPHP &gt;=5.6CI failing

Since Sep 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Sapistudio/SapiHttp)[ Packagist](https://packagist.org/packages/sapistudio/http)[ RSS](/packages/sapistudio-http/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (9)Versions (12)Used By (2)

ChromeClient(fork from spatie/browsershot) - using headless Chrome
==================================================================

[](#chromeclientfork-from-spatiebrowsershot----using-headless-chrome)

```
use SapiStudio\Http\Browser\HeadlessChrome;

HeadlessChrome::url('https://example.com')->save($pathToImage);
```

Requirements
------------

[](#requirements)

This package requires node 7.6.0 or higher and the Puppeteer Node library.

On a [Forge](https://forge.laravel.com) provisioned Ubuntu 16.04 server you can install the latest stable version of Chrome like this:

```
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
sudo npm install --global --unsafe-perm puppeteer
sudo chmod -R o+rx /usr/lib/node_modules/puppeteer/.local-chromium
```

Get a guzzle 6 object
=====================

[](#get-a-guzzle-6-object)

```
use SapiStudio\Http\Browser\StreamClient;

$streamClient  = StreamClient::make();
$guzzleClient  = StreamClient::makeGuzzle();
```

Test all images and links(src,href) from content or a list of of URIS
=====================================================================

[](#test-all-images-and-linkssrchref-from-content-or-a-list-of-of-uris)

```
use SapiStudio\Http\Browser\StreamClient;
use \SapiStudio\Http\Html;

$linksValidation = Html::testUris($content);
// content can be html string,or an array containing links to be tested
//or only an array of links
$linksValidation = StreamClient::make()->validateLinks($links);
```

Download files async
====================

[](#download-files-async)

```
use SapiStudio\Http\Browser\StreamClient;

$uris[$uniqueIndex] = [
  StreamClient::ASYNC_URIPATH_MAP     => 'path to download',
  StreamClient::ASYNC_URILINK_MAP     => 'url link'
];
$uris = StreamClient::make()->downloadFilesAsync($uris);
```

Parse use agent string
======================

[](#parse-use-agent-string)

```
use SapiStudio\Http\DeviceDetector;

DeviceDetector::uAgent($b['uagent'])
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~110 days

Recently: every ~123 days

Total

11

Last Release

1676d ago

Major Versions

3.4.5 → 4.02018-11-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed1a8aae5d1befdaadd91bd113d227ec995b0382d2cf5fc827d479b510454fad?d=identicon)[maharbig](/maintainers/maharbig)

---

Top Contributors

[![Sapistudio](https://avatars.githubusercontent.com/u/15252797?v=4)](https://github.com/Sapistudio "Sapistudio (153 commits)")

---

Tags

guzzle-middlewareheadless-chromehttp-client

### Embed Badge

![Health badge](/badges/sapistudio-http/health.svg)

```
[![Health](https://phpackages.com/badges/sapistudio-http/health.svg)](https://phpackages.com/packages/sapistudio-http)
```

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[illuminate/http

The Illuminate Http package.

11936.0M5.1k](/packages/illuminate-http)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
