PHPackages                             heartsentwined/zf2-browser - 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. heartsentwined/zf2-browser

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

heartsentwined/zf2-browser
==========================

web browser with quick browse methods using zf2's HTTP Client and cURL

v2.1.3(9y ago)232ISCPHPPHP &gt;=5.3.3

Since Sep 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/heartsentwined/zf2-browser)[ Packagist](https://packagist.org/packages/heartsentwined/zf2-browser)[ Docs](https://github.com/yalesov/zf2-browser)[ RSS](/packages/heartsentwined-zf2-browser/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (14)Used By (0)

zf2-browser
===========

[](#zf2-browser)

[![Build Status](https://camo.githubusercontent.com/4e6863e79e3182fb1f3e2427286882e5336758032e0248dba87b046cec6e3f33/68747470733a2f2f7472617669732d63692e6f72672f79616c65736f762f7a66322d62726f777365722e737667)](https://travis-ci.org/yalesov/zf2-browser)

web browser with quick browse methods using zf2's HTTP Client and cURL

Installation
============

[](#installation)

[Composer](http://getcomposer.org/):

```
{
  "require": {
    "yalesov/zf2-browser": "2.*"
  }
}
```

Copy `config/browser.local.php.dist` into `(app root)/config/autoload/browser.local.php`, and edit configs as described below.

Config
======

[](#config)

The `browser` alias can be changed to anything you like.

- `cookieDir`: directory for storing cookies. Make sure you create this directory, and that it is writable by `www-data` (or whatever your PHP scripts run as); or at least that its parent directory is writable (the script will create this dir for you in this case).
- `cookieLife`: lifetime for cookie files (minute)
- `connectTimeout`: max time to wait when connecting (second)
- `options`: wrapper for `\Zend\Http\Client::setOptions()`
- `headers`: wrapper for `\Zend\Http\Client::setHeaders()`

Usage
=====

[](#usage)

Get a browser instance

```
// $locator instanceof ServiceLocator
$browser = $locator->get('browser')->newInstance();
```

`GET` a page

```
$responseBody = $browser->get('http://example.com');
```

`POST` to a page with param `foo` = `bar`

```
$responseBody = $browser->post('http://example.com', array('foo' => 'bar'));
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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 ~116 days

Recently: every ~0 days

Total

13

Last Release

3597d ago

Major Versions

1.0.7 → v2.0.02016-07-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2252978?v=4)[heartsentwined](/maintainers/heartsentwined)[@heartsentwined](https://github.com/heartsentwined)

---

Top Contributors

[![yalesov](https://avatars.githubusercontent.com/u/20264293?v=4)](https://github.com/yalesov "yalesov (8 commits)")

---

Tags

browsercurlzf2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/heartsentwined-zf2-browser/health.svg)

```
[![Health](https://phpackages.com/badges/heartsentwined-zf2-browser/health.svg)](https://phpackages.com/packages/heartsentwined-zf2-browser)
```

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M258](/packages/rmccue-requests)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48247.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)[zfr/zfr-cors

Zend Framework module that let you deal with CORS requests

611.2M3](/packages/zfr-zfr-cors)[kelvinzer0/curl-impersonate-php

Curl-Impersonate-PHP - Library to execute HTTP requests using cURL in PHP with the ability to impersonate the behavior of major browsers (Chrome, Firefox, Safari, and Microsoft Edge).

2246.1k2](/packages/kelvinzer0-curl-impersonate-php)[zfr/zfr-rest

Zend Framework 2 REST Module.

8120.6k](/packages/zfr-zfr-rest)

PHPackages © 2026

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