PHPackages                             ergebnis/agent-detector - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ergebnis/agent-detector

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ergebnis/agent-detector
=======================

Provides a detector for detecting the presence of an agent.

1.2.0(2mo ago)168.6M↓15.6%1[1 issues](https://github.com/ergebnis/agent-detector/issues)[1 PRs](https://github.com/ergebnis/agent-detector/pulls)5MITPHPPHP ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0 || ~8.6.0CI passing

Since Apr 9Pushed 1w agoCompare

[ Source](https://github.com/ergebnis/agent-detector)[ Packagist](https://packagist.org/packages/ergebnis/agent-detector)[ Docs](https://github.com/ergebnis/agent-detector)[ RSS](/packages/ergebnis-agent-detector/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (15)Versions (6)Used By (5)

agent-detector
==============

[](#agent-detector)

[![Integrate](https://github.com/ergebnis/agent-detector/actions/workflows/integrate.yaml/badge.svg?branch=main)](https://github.com/ergebnis/agent-detector/actions/workflows/integrate.yaml)[![Merge](https://github.com/ergebnis/agent-detector/actions/workflows/merge.yaml/badge.svg)](https://github.com/ergebnis/agent-detector/actions/workflows/merge.yaml)[![Release](https://github.com/ergebnis/agent-detector/actions/workflows/release.yaml/badge.svg)](https://github.com/ergebnis/agent-detector/actions/workflows/release.yaml)[![Renew](https://github.com/ergebnis/agent-detector/actions/workflows/renew.yaml/badge.svg)](https://github.com/ergebnis/agent-detector/actions/workflows/renew.yaml)

[![Code Coverage](https://camo.githubusercontent.com/49cf01fd3e0cb61fdbd87cab4825189471e8089aa0e7f8d47e9fc9e9384bf332/68747470733a2f2f636f6465636f762e696f2f67682f65726765626e69732f6167656e742d6465746563746f722f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/ergebnis/agent-detector)

[![Latest Stable Version](https://camo.githubusercontent.com/7c8eef91e3e1b158e00bdc9fc556f116e5e784b2fc9033cbfc9c38e650af26b8/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f6167656e742d6465746563746f722f762f737461626c65)](https://packagist.org/packages/ergebnis/agent-detector)[![Total Downloads](https://camo.githubusercontent.com/7093d5f11e910f27b9cf2d57c19ea792923bd2261ece58d64f1f26cd3ecb41af/68747470733a2f2f706f7365722e707567782e6f72672f65726765626e69732f6167656e742d6465746563746f722f646f776e6c6f616473)](https://packagist.org/packages/ergebnis/agent-detector)[![Monthly Downloads](https://camo.githubusercontent.com/7f07b262fac7205f7cb1103b72c728b8af95705d967144f22f77c545c9efa8bb/687474703a2f2f706f7365722e707567782e6f72672f65726765626e69732f6167656e742d6465746563746f722f642f6d6f6e74686c79)](https://packagist.org/packages/ergebnis/agent-detector)

This project provides a [`composer`](https://getcomposer.org) package with a detector for detecting the presence of an agent.

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

[](#installation)

Run

```
composer require ergebnis/agent-detector
```

Usage
-----

[](#usage)

### Detecting the presence of an agent

[](#detecting-the-presence-of-an-agent)

```
