PHPackages                             setono/client - 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. setono/client

ActiveLibrary

setono/client
=============

PHP abstraction for identifying a browser client

v1.1.1(2y ago)016.8k↓37.5%1MITPHPPHP &gt;=8.1CI passing

Since Mar 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Setono/client)[ Packagist](https://packagist.org/packages/setono/client)[ GitHub Sponsors](https://github.com/Setono)[ RSS](/packages/setono-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (1)

PHP abstraction for identifying a browser client
================================================

[](#php-abstraction-for-identifying-a-browser-client)

[![Latest Version](https://camo.githubusercontent.com/970c06f647d0e5b01c861b2f184de2d444b609fad06991f002dedbc947245a72/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f636c69656e742f762f737461626c65)](https://packagist.org/packages/setono/client)[![Software License](https://camo.githubusercontent.com/c602e8d7c33a4a11283466c43dbfb5a7d781d9067188677f215372922aa6024c/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f636c69656e742f6c6963656e7365)](LICENSE)[![Build Status](https://github.com/setono/client/workflows/build/badge.svg)](https://github.com/setono/client/actions)[![Code Coverage](https://camo.githubusercontent.com/28c47f37b9629aa9c49260553bec40534376b71df8a3f7ec736c70a8e2e6dfa6/68747470733a2f2f636f6465636f762e696f2f67682f7365746f6e6f2f636c69656e742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/setono/client)[![Mutation testing](https://camo.githubusercontent.com/64f3e60bb9530f8aeb0386880bc9c7f7b45ec82518f0fc19d2801c445f262b63/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532465365746f6e6f253246636c69656e742532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/Setono/client/master)

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

[](#installation)

```
composer require setono/client
```

If you don't use your own client id generation strategy, you should also install either the [symfony/uid](https://packagist.org/packages/symfony/uid) or the [ramsey/uuid](https://packagist.org/packages/ramsey/uuid) package:

```
# If you want to use symfony/uid
composer require symfony/uid

# If you want to use ramsey/uuid
composer require ramsey/uuid
```

Usage
-----

[](#usage)

```
use Setono\Client\Client;

// initialization with a generated id and an empty metadata object
$client = new Client();

// initialization with your own id and existing metadata
$client = new Client('my-client-id', ['foo' => 'bar']);

// get the client id
$id = $client->id;

// set metadata
$client->metadata->set('foo', 'bar');

// set metadata that expires in 1 hour
$client->metadata->set('foo', 'bar', 3600);

// get metadata
$client->metadata->get('foo');

// remove metadata
$client->metadata->remove('foo');
```

There's also a `Cookie` class which can be used to store the client id in a cookie.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

3

Last Release

741d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2412177?v=4)[Joachim Løvgaard](/maintainers/loevgaard)[@loevgaard](https://github.com/loevgaard)

---

Top Contributors

[![loevgaard](https://avatars.githubusercontent.com/u/2412177?v=4)](https://github.com/loevgaard "loevgaard (29 commits)")

---

Tags

php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/setono-client/health.svg)

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

PHPackages © 2026

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