PHPackages                             anhpha/lexik-jwt-service-provider - 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. anhpha/lexik-jwt-service-provider

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

anhpha/lexik-jwt-service-provider
=================================

This is a provider for silex 2.0 using lexik jwt authentication provider class to create a encoder

1.0(9y ago)0976PHP

Since Oct 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/anhpha/lexik-jwt-encoder-provider)[ Packagist](https://packagist.org/packages/anhpha/lexik-jwt-service-provider)[ RSS](/packages/anhpha-lexik-jwt-service-provider/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

lexik-jwt-encoder-provider
==========================

[](#lexik-jwt-encoder-provider)

JWT encoder provider for Silex 2.0 based on LexikJWTAuthenticationBundle

Usage
=====

[](#usage)

```
  $ttl = 86400;
        $exp = time() + $ttl;
        $token = $this->container['lexikEncoder']()->encode(['username' => 'test', 'exp' => $exp]);
        $response = new JsonResponse();
        $response->setData(array(
            'token' => $token,
        ));
        //$response = new JsonResponse();
        return $response;
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~0 days

Total

4

Last Release

3534d ago

Major Versions

0.3 → 1.02016-10-26

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/136686230?v=4)[phavo](/maintainers/phavo)[@Phavo](https://github.com/Phavo)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/anhpha-lexik-jwt-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/anhpha-lexik-jwt-service-provider/health.svg)](https://phpackages.com/packages/anhpha-lexik-jwt-service-provider)
```

###  Alternatives

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

JSON Web Token Authentication for Laravel and Lumen

83910.6M60](/packages/php-open-source-saver-jwt-auth)[davec49/silex2-simpleuser

A simple database-backed user provider for Silex 2.0, with associated services and controllers forked from jasongrimes/SimpleUser.

131.1k](/packages/davec49-silex2-simpleuser)

PHPackages © 2026

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