PHPackages                             platform-auth/kya-sdk-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. platform-auth/kya-sdk-php

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

platform-auth/kya-sdk-php
=========================

SDK officiel KYA pour la vérification des passeports d'agents IA.

v1.0.0(2mo ago)02MITPHPPHP ^8.1

Since May 13Pushed 2mo agoCompare

[ Source](https://github.com/CharlyClar/kya-php-sdk)[ Packagist](https://packagist.org/packages/platform-auth/kya-sdk-php)[ RSS](/packages/platform-auth-kya-sdk-php/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

KYA PHP SDK 🚀
=============

[](#kya-php-sdk-)

> Le SDK officiel pour intégrer l'authentification par passeports d'agents IA KYA sur vos plateformes PHP.

📦 Installation
--------------

[](#-installation)

Installez le SDK via Composer :

```
composer require platform-auth/kya-sdk-php

🛡️ Utilisation Rapide
Le SDK permet de vérifier instantanément si une requête provient d'un agent IA certifié et si celui-ci dispose des droits nécessaires (ex: budget).

use Kya\Sdk\Verifier;

$verifier = new Verifier();

// 1. Les données reçues de l'Agent (via Headers ou POST)
$passport = $request->json('passport');
$nonce = $request->header('X-KYA-Nonce');
$signature = $request->header('X-KYA-Signature');

// 2. Vérification complète
$result = $verifier->verify($passport, $nonce, $signature, 250.00);

if ($result['status'] === 'success') {
    echo "Agent identifié : " . $result['agent_name'];
    // Procéder à l'action...
} else {
    echo "Accès refusé : " . $result['message'];
}

🤖 Comment ça marche ?
Le SDK utilise la bibliothèque Libsodium pour valider la signature cryptographique Ed25519 du passeport. Il garantit que :

Le passeport n'a pas été modifié.

L'agent possède bien la clé privée associée.

L'humain derrière l'agent est vérifié par la plateforme KYA.

⚖️ Licence

MIT

---

### 🚦 On en est où ?

Ton projet `kya-php-sdk` est maintenant techniquement prêt. Pour qu'il devienne "réel" et installable avec une commande, il ne nous manque que deux choses :

1.  **Le mettre sur GitHub** : Créer un dépôt public.
2.  **Le lier à Packagist** : C'est le site qui gère les commandes `composer require`.

**Est-ce que tu as déjà un compte GitHub prêt ?** Si oui, je peux t'expliquer comment "pousser" ton dossier `kya-php-sdk` dessus proprement en ligne de commande.

*PS: On n'a pas encore fait le Middleware (le truc automatique), on le fera juste après pour que ce soit la "Cerise sur le gâteau" de ton SDK.*
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance86

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

72d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/59528726?v=4)[Charly Clar](/maintainers/CharlyClar)[@CharlyClar](https://github.com/CharlyClar)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/platform-auth-kya-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/platform-auth-kya-sdk-php/health.svg)](https://phpackages.com/packages/platform-auth-kya-sdk-php)
```

###  Alternatives

[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)[firemultimedia/mautic-multi-captcha-bundle

This plugin brings Google's reCAPTCHA, hCaptcha, and Cloudflare Turnstile integration to mautic.

141.3k](/packages/firemultimedia-mautic-multi-captcha-bundle)

PHPackages © 2026

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