PHPackages                             neilime/zf2-browscap - 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. neilime/zf2-browscap

AbandonedArchivedLibrary

neilime/zf2-browscap
====================

ZF2 Browscap is a Zend Framework 2 module that provides an improved 'get\_browser' function. This module could be standalone if 'browscap' configuration setting in php.ini is undefined or does not point to the correct location of the browscap.ini file

1.1(12y ago)22.4k2MITHTMLPHP &gt;=5.3.3

Since Jul 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/neilime/zf2-browscap)[ Packagist](https://packagist.org/packages/neilime/zf2-browscap)[ Docs](https://github.com/neilime/zf2-browscap)[ RSS](/packages/neilime-zf2-browscap/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

ZF2 Browscap
============

[](#zf2-browscap)

**⚠️ This module is for Zend Framework 2, it is deprecated ⚠️**

[![Build Status](https://camo.githubusercontent.com/b23f59b55e7e7471b43496897460632b288f36604532612cf7bbf13992cecb22/68747470733a2f2f7472617669732d63692e6f72672f6e65696c696d652f7a66322d62726f77736361702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/neilime/zf2-browscap)[![Latest Stable Version](https://camo.githubusercontent.com/b39da7d4551c02047126a566271d4c1e54ea2259604ab8bcb322c5f0ed72e58e/68747470733a2f2f706f7365722e707567782e6f72672f6e65696c696d652f7a66322d62726f77736361702f762f737461626c652e706e67)](https://packagist.org/packages/neilime/zf2-browscap)[![Total Downloads](https://camo.githubusercontent.com/839f0cefd2bd2f6a3def8086e493c2f7ac7fe6b3b2cf6f699ff050f7d5238e62/68747470733a2f2f706f7365722e707567782e6f72672f6e65696c696d652f7a66322d62726f77736361702f646f776e6c6f6164732e706e67)](https://packagist.org/packages/neilime/zf2-browscap)[![Code coverage](https://camo.githubusercontent.com/d88ad14609fc28b80da24e0c2f47229a8caecd3d6b7a71b5a25f6d286e839596/68747470733a2f2f7261772e6769746875622e636f6d2f7a66322d626f696c65722d6170702f6170702d746573742f6d61737465722f726573736f75726365732f3130302532352d636f64652d636f7665726167652e706e67 "100% code coverage")](https://camo.githubusercontent.com/d88ad14609fc28b80da24e0c2f47229a8caecd3d6b7a71b5a25f6d286e839596/68747470733a2f2f7261772e6769746875622e636f6d2f7a66322d626f696c65722d6170702f6170702d746573742f6d61737465722f726573736f75726365732f3130302532352d636f64652d636f7665726167652e706e67)

NOTE : If you want to contribute don't hesitate, I'll review any PR.

Introduction
------------

[](#introduction)

ZF2 Browscap is a Zend Framework 2 module that provides an improved [get\_browser](http://www.php.net/manual/en/function.get-browser.php) function. This module could be standalone if "browscap" configuration setting in php.ini is undefined or does not point to the correct location of the browscap.ini file.

Contributing
------------

[](#contributing)

If you wish to contribute to ZF2 Browscap, please read both the [CONTRIBUTING.md](CONTRIBUTING.md) file.

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

[](#requirements)

- [Zend Framework 2](https://github.com/zendframework/zf2) (2.\*)

Installation
------------

[](#installation)

### Main Setup

[](#main-setup)

#### By cloning project

[](#by-cloning-project)

1. Install [browscap](https://github.com/browscap/browscap) by cloning it into `./vendor/`.
2. Clone this project into your `./vendor/` directory.

#### With composer

[](#with-composer)

1. Add this project in your composer.json:

    ```
    "require": {
        "neilime/zf2-browscap": "dev-master"
    }

    ```
2. Now tell composer to download **ZF2 Browscap** by running the command:

    ```
    $ php composer.phar update

    ```

#### Post installation

[](#post-installation)

1. Enabling it in your `application.config.php`file.

    ```
