PHPackages                             spomky-labs/u2f-php - 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. spomky-labs/u2f-php

Abandoned → [https://github.com/web-auth](/?search=https%3A%2F%2Fgithub.com%2Fweb-auth)ArchivedLibrary[Security](/categories/security)

spomky-labs/u2f-php
===================

FIDO/FIDO2 U2F Support For PHP

2514.4k2PHP

Since Dec 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Spomky-Labs/u2f-php)[ Packagist](https://packagist.org/packages/spomky-labs/u2f-php)[ RSS](/packages/spomky-labs-u2f-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

FIDO/FIDO2 U2F Support for PHP
==============================

[](#fidofido2-u2f-support-for-php)

---

 **THIS LIBRARY IS NOW DEPRECATED. PLEASE USE [WEB-AUTH](https://github.com/web-auth) INSTEAD**

---

[![Codacy Badge](https://camo.githubusercontent.com/cb4872a019786a51d7c85285dd0a3ae008e50454df2ae4e3b1615e381ae96a9b/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6437396530306166343865633463613439623064393961373131323832653737)](https://app.codacy.com/app/Spomky/u2f-php?utm_source=github.com&utm_medium=referral&utm_content=Spomky-Labs/u2f-php&utm_campaign=Badge_Grade_Dashboard)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4c4194f74547f07507eed7be2bb28ec75b84a6344ee445739c7dab0f704e639a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53706f6d6b792d4c6162732f7532662d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Spomky-Labs/u2f-php/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/c5da624d6a69429b22b3bdaa00b90540846d20d47d05e90b0ac2e3ad5cb3b2a4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f53706f6d6b792d4c6162732f7532662d7068702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Spomky-Labs/u2f-php?branch=master)

[![Build Status](https://camo.githubusercontent.com/3726820249b9d533e286f2baac9962ee8b8a78f615d5fc414a7c1f5db6a20dbf/68747470733a2f2f7472617669732d63692e6f72672f53706f6d6b792d4c6162732f7532662d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Spomky-Labs/u2f-php)

[![Latest Stable Version](https://camo.githubusercontent.com/3b9c79be703003b9a84539b44dcae9e8deaf451408318b79d08a9892092eb475/68747470733a2f2f706f7365722e707567782e6f72672f73706f6d6b792d6c6162732f7532662d7068702f762f737461626c652e706e67)](https://packagist.org/packages/spomky-labs/u2f-php)[![Total Downloads](https://camo.githubusercontent.com/5748437853a5ebce8003d86b592e94eaf1dd39b838679bb61b77c6b016a91863/68747470733a2f2f706f7365722e707567782e6f72672f73706f6d6b792d6c6162732f7532662d7068702f646f776e6c6f6164732e706e67)](https://packagist.org/packages/spomky-labs/u2f-php)[![Latest Unstable Version](https://camo.githubusercontent.com/250f608c17f57f065e14bbc17f5406f404430ddb2db188cdd1ec26e601a0cf84/68747470733a2f2f706f7365722e707567782e6f72672f73706f6d6b792d6c6162732f7532662d7068702f762f756e737461626c652e706e67)](https://packagist.org/packages/spomky-labs/u2f-php)[![License](https://camo.githubusercontent.com/d34c9c686e87826c6cd8b28772883e534f408f511389775c549f4a5b7d8106e3/68747470733a2f2f706f7365722e707567782e6f72672f73706f6d6b792d6c6162732f7532662d7068702f6c6963656e73652e706e67)](https://packagist.org/packages/spomky-labs/u2f-php) [![GuardRails badge](https://camo.githubusercontent.com/30989fb8ee1bbaf88d0e7aa92200a9a3cc1f0cdfeb5796a625db3a3329e1f62d/68747470733a2f2f6261646765732e70726f64756374696f6e2e67756172647261696c732e696f2f53706f6d6b792d4c6162732f7532662d7068702e737667)](https://www.guardrails.io)

**FIDO U2F Support for PHP** is a **PHP library** that will help you to support compatible security tokens..

Installation
============

[](#installation)

Install the library with Composer: `composer require spomky-labs/u2f-php`.

This project follows the [semantic versioning](http://semver.org/) strictly.

Documentation
=============

[](#documentation)

- For FIDO (U2F) support, please [read this page](doc/FIDO.md).
- For FIDO2 (Webauthn) support, please [read this page](doc/FIDO2.md).

Contributing
============

[](#contributing)

Requests for new features, bug fixed and all other ideas to make this project useful are welcome. The best contribution you could provide is by fixing the [opened issues where help is wanted](https://github.com/Spomky-Labs/u2f-php/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22).

Please report all issues in [the main repository](https://github.com/Spomky-Labs/u2f-php/issues).

Please make sure to [follow these best practices](.github/CONTRIBUTING.md).

Security Issues
===============

[](#security-issues)

If you discover a security vulnerability within the project, please **don't use the bug tracker and don't publish it publicly**. Instead, all security issues must be sent to security \[at\] spomky-labs.com.

Support
=======

[](#support)

I bring solutions to your problems and answer your questions.

If you really love that project and the work I have done or if you want I prioritize your issues, then you can help me out for a couple of 🍻 or more!

[![Become a Patreon](https://camo.githubusercontent.com/ef7b855018f1f680eeba6fd1ac470b9c1971ef883b2f4b9fcf41034274510e3f/68747470733a2f2f63352e70617472656f6e2e636f6d2f65787465726e616c2f6c6f676f2f6265636f6d655f615f706174726f6e5f627574746f6e2e706e67)](https://www.patreon.com/FlorentMorselli)

Licence
=======

[](#licence)

This project is release under [MIT licence](LICENSE).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 97.1% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccc6c59de7d9ddc53219653bc58f1e082ef83d96632d233eedc0b7097cf80ea3?d=identicon)[Spomky](/maintainers/Spomky)

---

Top Contributors

[![Spomky](https://avatars.githubusercontent.com/u/1091072?v=4)](https://github.com/Spomky "Spomky (102 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")[![guardrails[bot]](https://avatars.githubusercontent.com/in/5512?v=4)](https://github.com/guardrails[bot] "guardrails[bot] (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

fido-u2f-supportphpu2fu2f-protocolu2f-serverwebauthn

### Embed Badge

![Health badge](/badges/spomky-labs-u2f-php/health.svg)

```
[![Health](https://phpackages.com/badges/spomky-labs-u2f-php/health.svg)](https://phpackages.com/packages/spomky-labs-u2f-php)
```

###  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)
