PHPackages                             jdr/jws-ecdsa - 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. jdr/jws-ecdsa

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

jdr/jws-ecdsa
=============

ECDSA signers for lcobucci/jwt

0.4.1(8y ago)13.5k↓25%[1 issues](https://github.com/johanderuijter/jws-ecdsa/issues)2MITPHP

Since Aug 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/johanderuijter/jws-ecdsa)[ Packagist](https://packagist.org/packages/jdr/jws-ecdsa)[ RSS](/packages/jdr-jws-ecdsa/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (7)Used By (2)

jws-ecdsa
=========

[](#jws-ecdsa)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cdb780fc869825c4265a13a6e15d9498299167c224212632fabbcba13769ddf3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a64722f6a77732d65636473612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jdr/jws-ecdsa)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e8e6f46e7bb2f5afca75f1b79c293095d5e5ebf5c35cd91fa1817e78e4e55bf6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a6f68616e64657275696a7465722f6a77732d65636473612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/johanderuijter/jws-ecdsa)[![Total Downloads](https://camo.githubusercontent.com/aab68164e361225c611f394c6ab7e1c54cf0a54318d182c2bd4ea06800ea9ab7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a64722f6a77732d65636473612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jdr/jws-ecdsa)

ECDSA signers for [`lcobucci/jwt`](https://github.com/lcobucci/jwt).

This library was created in order to support [`mdanter/ecc`](https://github.com/phpecc/phpecc) 0.4.x in combination with lcobucci/jwt 3.x and will be deprecated once `lcobucci/jwt` itself offers support for this version of the `mdanter/ecc` library.

Instalation
-----------

[](#instalation)

Require the library with composer:

```
composer require jdr/jws-ecdsa
```

Usage
-----

[](#usage)

The signers supplied by this library are drop in replacements for the ones supplied by `lcobucci/jwt`.

```
use Lcobucci\JWT\Builder;
use Lcobucci\JWT\Signer\Key;
use JDR\JWS\ECDSA\ES256;

$signer = new ES256();

$privateKey = new Key('file://...');

$token = (new Builder())
    ->setIssuedAt(time())
    ->setExpiration(time() + 3600)
    // ... Set additional claims
    ->sign($signer, $privateKey)
    ->getToken();

$publicKey = new Key('file://...');

$token->verify($signer, $publicKey);
```

Credits
-------

[](#credits)

- [Johan de Ruijter](https://github.com/johanderuijter)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

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

Every ~95 days

Recently: every ~118 days

Total

6

Last Release

3174d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c705390eea996e3d3c74774d80d1c857e7c26844c16c995f7ff63280f9ea1c7?d=identicon)[jdr](/maintainers/jdr)

---

Top Contributors

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

---

Tags

jwtphp

### Embed Badge

![Health badge](/badges/jdr-jws-ecdsa/health.svg)

```
[![Health](https://phpackages.com/badges/jdr-jws-ecdsa/health.svg)](https://phpackages.com/packages/jdr-jws-ecdsa)
```

###  Alternatives

[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84511.6M67](/packages/php-open-source-saver-jwt-auth)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

589701.7k2](/packages/scheb-2fa)[scheb/2fa-trusted-device

Extends scheb/2fa-bundle with trusted devices support

366.0M40](/packages/scheb-2fa-trusted-device)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M674](/packages/shopware-core)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

62473.7k10](/packages/jeremy379-laravel-openid-connect)[drenso/symfony-oidc-bundle

OpenID connect bundle for Symfony

97795.4k4](/packages/drenso-symfony-oidc-bundle)

PHPackages © 2026

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