PHPackages                             chinhle-pa/attestation - 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. chinhle-pa/attestation

ActivePackage

chinhle-pa/attestation
======================

A description for attestation.

12PHP

Since May 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/chinhle-pa/attestation)[ Packagist](https://packagist.org/packages/chinhle-pa/attestation)[ RSS](/packages/chinhle-pa-attestation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

attestation
===========

[](#attestation)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)![Travis](https://camo.githubusercontent.com/4f0e26c2ed551ac68ca25cc0446d341b9a9356bf5f7c0470c980bc06d3c5e260/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6368696e686c652d70612f6174746573746174696f6e2e7376673f7374796c653d666c61742d737175617265)[![Total Downloads](https://camo.githubusercontent.com/6799ce5f83c0d23256152fa63271ec08faf7ae27db3d1fb34900fe8bf7ab515e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696e686c652d70612f6174746573746174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chinhle-pa/attestation)

Install
-------

[](#install)

`composer require chinhle-pa/attestation`

Usage
-----

[](#usage)

Add middleware ensuredeive to any routes you need check attestation.

```
Route::get('/full-info', function(Request $request){
    return $request;
})->middleware('ensuredevice');
```

Plugin will repond a challenge key

```
{
    "challenge": "bWd2dkJEdjhiS0dQT1ZtVXVqcFA="
}
```

### iOS

[](#ios)

Call POST api/via-attestation to check

```
{
    "device-platform": "iOS",
    "challenge": "bWd2dkJEdjhiS0dQT1ZtVXVqcFA=",
    "integrityToken": "o2NmbXRvYXBwbGUtY....",
    "keyIndentifier": "sy05jqrd95uyFKZcJrHobs6s.."
}
```

### Android

[](#android)

```
{
    "device-platform": "Android",
    "challenge": "bWd2dkJEdjhiS0dQT1ZtVXVqcFA=",
    "integrityToken": "o2NmbXRvYXBwbGUtY...."
}
```

Testing
-------

[](#testing)

Run the tests with:

```
vendor/bin/phpunit
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Chinh Le](https://github.com/chinhle-pa)
- [All Contributors](https://github.com/chinhle-pa/attestation/contributors)

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](/LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a621593fbe65e494a4a6acceae568ed345bdc53e22241db5f83cedbc2a7aa3a1?d=identicon)[chinhle-pa](/maintainers/chinhle-pa)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/chinhle-pa-attestation/health.svg)

```
[![Health](https://phpackages.com/badges/chinhle-pa-attestation/health.svg)](https://phpackages.com/packages/chinhle-pa-attestation)
```

PHPackages © 2026

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