PHPackages                             neamil/device\_cookies - 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. [Security](/categories/security)
4. /
5. neamil/device\_cookies

ActiveLibrary[Security](/categories/security)

neamil/device\_cookies
======================

a base for a php implementation of device cookies as described in OWASP https://www.owasp.org/index.php/Slow\_Down\_Online\_Guessing\_Attacks\_with\_Device\_Cookies

1.0.1(5y ago)01961MITPHPPHP ^7.2CI failing

Since Jun 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/n3amil/device_cookies)[ Packagist](https://packagist.org/packages/neamil/device_cookies)[ RSS](/packages/neamil-device-cookies/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (5)Versions (6)Used By (1)

[![Quality Gate Status](https://camo.githubusercontent.com/5fad8abd53cf8a5f64fa90303af54c4f1a5f85ef0bb30e8c4eafd00551f37043/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6e33616d696c5f6465766963655f636f6f6b696573266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=n3amil_device_cookies)[![Coverage](https://camo.githubusercontent.com/1391c3b4f97ce2c79d0e7444bc713053b028192229aa8249ec6298948f7b2fe0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6e33616d696c5f6465766963655f636f6f6b696573266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=n3amil_device_cookies)[![Maintainability Rating](https://camo.githubusercontent.com/262ef3465efedb9a32cd7b435da8f20b20f7594f9f205f99878e2cbbaa70cdc0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6e33616d696c5f6465766963655f636f6f6b696573266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=n3amil_device_cookies)[![Vulnerabilities](https://camo.githubusercontent.com/08a954beac901202fda3fd558ddc0d7b036cf7995791dc3f2b65622c5455bf56/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6e33616d696c5f6465766963655f636f6f6b696573266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=n3amil_device_cookies)[![Bugs](https://camo.githubusercontent.com/da4f928e0368028bbac05ace650762083b2f9d96236e71a35fce3572059f152d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6e33616d696c5f6465766963655f636f6f6b696573266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=n3amil_device_cookies)[![Code Smells](https://camo.githubusercontent.com/0071b8cf289dfb2c3cabef309eb3312a8c026908e73eb86f229594b155541b29/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6e33616d696c5f6465766963655f636f6f6b696573266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/dashboard?id=n3amil_device_cookies)

device\_cookies
===============

[](#device_cookies)

a base for a php implementation of device cookies as described in OWASP [https://www.owasp.org/index.php/Slow\_Down\_Online\_Guessing\_Attacks\_with\_Device\_Cookies](https://www.owasp.org/index.php/Slow_Down_Online_Guessing_Attacks_with_Device_Cookies)

this base provides interfaces and services to use for an implementation

development
===========

[](#development)

running unit tests with docker-compose
--------------------------------------

[](#running-unit-tests-with-docker-compose)

to conveniently execute the unit tests just run 'docker-compose run --rm phpunit'

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.9% 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 ~1 days

Total

2

Last Release

2161d ago

PHP version history (2 changes)1.0.0PHP ^7.1

1.0.1PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/86b714387c83b4e3d1854d5b1ec03919cd5c938a36a1f0f0d695eb73373b61ae?d=identicon)[n3amil](/maintainers/n3amil)

---

Top Contributors

[![3m5-seipelt](https://avatars.githubusercontent.com/u/109289894?v=4)](https://github.com/3m5-seipelt "3m5-seipelt (20 commits)")[![n3amil](https://avatars.githubusercontent.com/u/38440086?v=4)](https://github.com/n3amil "n3amil (6 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/neamil-device-cookies/health.svg)

```
[![Health](https://phpackages.com/badges/neamil-device-cookies/health.svg)](https://phpackages.com/packages/neamil-device-cookies)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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