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

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

yalesov/zf2-browser
===================

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

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

Since Sep 6Pushed 9y ago1 watchersCompare

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

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

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

3646d ago

Major Versions

1.0.7 → v2.0.02016-07-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c284282a506ac3c908eda03eb11cc263a4457f2e3cc23cbe3e9b97830589e31?d=identicon)[yalesov](/maintainers/yalesov)

---

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/yalesov-zf2-browser/health.svg)

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

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k36.3M275](/packages/rmccue-requests)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48348.5M435](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84711.1M80](/packages/smi2-phpclickhouse)[zfr/zfr-cors

Zend Framework module that let you deal with CORS requests

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

PHP wrapper for curl-impersonate — mimic real browser TLS fingerprints to bypass anti-bot detection

2652.0k6](/packages/kelvinzer0-curl-impersonate-php)[zfr/zfr-rest

Zend Framework 2 REST Module.

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

PHPackages © 2026

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