PHPackages                             okatsuralau/cakephp-clientinfo - 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. okatsuralau/cakephp-clientinfo

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

okatsuralau/cakephp-clientinfo
==============================

CakePHP plugin providing easy access to information about the client app requesting your site

v1.0.1(8y ago)035MITPHPPHP &gt;=5.6

Since May 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gabrielslau/CakePHP-ClientInfo)[ Packagist](https://packagist.org/packages/okatsuralau/cakephp-clientinfo)[ Docs](https://github.com/okatsuralau/CakePHP-ClientInfo)[ RSS](/packages/okatsuralau-cakephp-clientinfo/feed)WikiDiscussions master Synced 2mo ago

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

 [ ![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265) ](LICENSE.txt) [ ![Build Status](https://camo.githubusercontent.com/5ea60bd5af114a3ec7aff37edd1591d95e226251628a4c80089206b089b1fe77/68747470733a2f2f696d672e736869656c64732e696f2f636f6465736869702f62326339663939302d316336342d303133352d323030622d3032303131306431303266302e7376673f7374796c653d666c61742d737175617265) ](https://app.codeship.com/projects/219946) [ ![Build Status](https://camo.githubusercontent.com/f8220a6c45ef37ad68a056550fc89ad6532610e013a6cd6c9b7c575ddd891942/68747470733a2f2f6170702e636f6465736869702e636f6d2f70726f6a656374732f62326339663939302d316336342d303133352d323030622d3032303131306431303266302f7374617475733f6272616e63683d6d6173746572) ](https://app.codeship.com/projects/219946) [ ![Latest Stable Version](https://camo.githubusercontent.com/d67c1a4d84488de314397014f43fea44af57ca15df4fe1e3380b41448368da8e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6b6174737572616c61752f63616b657068702d636c69656e74696e666f2e7376673f7374796c653d666c61742d737175617265266c6162656c3d737461626c65) ](https://packagist.org/packages/okatsuralau/cakephp-clientinfo)

CakePHP ClientInfo Plugin
=========================

[](#cakephp-clientinfo-plugin)

This plugin provides easy access to information about the client app requesting your site. It is just a wrapper and uses the [Browser Detector library](https://github.com/sinergi/browser-detector) to collect the data.

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

[](#requirements)

- PHP &gt;= 5.6
- CakePHP &gt;= 3.0

How to Install
--------------

[](#how-to-install)

```
composer require okatsuralau/cakephp-clientinfo@1.0.0

```

How to Use
----------

[](#how-to-use)

Load the plugin in your `config/bootstrap.php` file:

```
Plugin::load('CakephpClientInfo');

```

Load the component in your `src/Controller/AppController.php`

```
public function initialize()
{
    parent::initialize();

    $this->loadComponent('CakephpClientInfo.ClientInfo');
}
```

To get the info about the client use the

```
public function index()
{
    // returns the browser name (eg.: Chrome)
    $this->ClientInfo->browser();

    // returns the O.S. name (eg.: Linux)
    $this->ClientInfo->os();

    // returns the Device name (eg.: Computer, Mobile, Tablet, iPhone, ...)
    $this->ClientInfo->device();

    // returns the browser's language (eg.: en)
    $this->ClientInfo->language();

    // or you can access the original instance and make calls directly to the browser-detector
    $this->ClientInfo->Browser()->getName();
}
```

More information about the [Browser Detector library](https://github.com/sinergi/browser-detector).

License
-------

[](#license)

Copyright 2017 Gabriel Lau

Available for you to use under the MIT license. See:

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3281d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30d798b190b53d1146f708aad2d37e4db88e93fc51859f99990d45c5ba5031fa?d=identicon)[devlau](/maintainers/devlau)

---

Tags

browserlanguagecakephpdeviceos

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/okatsuralau-cakephp-clientinfo/health.svg)

```
[![Health](https://phpackages.com/badges/okatsuralau-cakephp-clientinfo/health.svg)](https://phpackages.com/packages/okatsuralau-cakephp-clientinfo)
```

###  Alternatives

[phpoption/phpoption

Option Type for PHP

2.7k541.2M158](/packages/phpoption-phpoption)[unicodeveloper/laravel-identify

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

19322.0k](/packages/unicodeveloper-laravel-identify)[thadafinser/user-agent-parser

UserAgent parsing done right http://useragent.mkf.solutions/

249316.9k2](/packages/thadafinser-user-agent-parser)[consoletvs/identify

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

2775.4k6](/packages/consoletvs-identify)[eprofos/user-agent-analyzer

A powerful Symfony bundle for user-agent analysis. It provides accurate detection of operating systems (Windows, MacOS, Linux, iOS, Android...), browsers (Chrome, Firefox, Safari...), and device types (Desktop, Mobile, Tablet, TV...). Supports specific version detection and includes advanced handling of special cases like WebViews and compatibility modes. Features comprehensive logging and detailed analysis results.

182.3k](/packages/eprofos-user-agent-analyzer)

PHPackages © 2026

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