PHPackages                             kura-lab/cose-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. kura-lab/cose-php

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

kura-lab/cose-php
=================

Json Web Token (JWT) Library

1.1.2(9y ago)0421[1 issues](https://github.com/kura-lab/cose-php/issues)MITPHPPHP &gt;=5.4.0

Since May 3Pushed 9y agoCompare

[ Source](https://github.com/kura-lab/cose-php)[ Packagist](https://packagist.org/packages/kura-lab/cose-php)[ Docs](https://github.com/kura-lab/cose-php)[ RSS](/packages/kura-lab-cose-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

cose-php
========

[](#cose-php)

Constrained Object Signing and Encryption for PHP

[![Packagist](https://camo.githubusercontent.com/370d9e0fded44a610a6ad94730d114c2f852eb9a9d02fd1472dbd2a57261a09e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b7572612d6c61622f636f73652d7068702e737667)](https://packagist.org/packages/kura-lab/cose-php)[![license](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://github.com/kura-lab/cose-php/blob/master/LICENSE)

### Specification

[](#specification)

-

### Requirements

[](#requirements)

[![Minimum PHP Version](https://camo.githubusercontent.com/68b7be3c61c37cbd51b377adc7e95f5b703855328529f2c00c505d774218d1f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e342e302d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)

- PHP 5.4.0 or higher.

### Installation

[](#installation)

At first, install composer.

```
$ mkdir workspace
$ cd workspace
$ curl -s http://getcomposer.org/installer | php

```

Create composer.json.

```
{
    "minimum-stability": "dev",
    "require": {
        "kura-lab/cose-php": "1.*"
    }
}

```

Install cose library.

```
$ php composer.phar install

```

### Development

[](#development)

Check coding style with CodeSniffer.

```
$ vendor/bin/phpcs --standard=PSR2 src/

```

Execute unit test with PHPUnit.

```
$ vendor/bin/phpunit

```

Fix source code with PHP Coding Standards Fixer.

```
$ vendor/bin/php-cs-fixer fix --config-file .php_cs --verbose --diff --dry-run
$ vendor/bin/php-cs-fixer fix --config-file .php_cs --verbose --diff

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Recently: every ~157 days

Total

6

Last Release

3394d ago

Major Versions

0.0.0 → 1.0.02015-05-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bcd036e786b60e6af7b06553c781aadc94b095e761f4fecc61a2dc6b3b712c5?d=identicon)[kura-lab](/maintainers/kura-lab)

---

Top Contributors

[![kura-lab](https://avatars.githubusercontent.com/u/1156984?v=4)](https://github.com/kura-lab "kura-lab (38 commits)")

---

Tags

jwtJSON Web TokenCOSE

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kura-lab-cose-php/health.svg)

```
[![Health](https://phpackages.com/badges/kura-lab-cose-php/health.svg)](https://phpackages.com/packages/kura-lab-cose-php)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M344](/packages/tymon-jwt-auth)[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M100](/packages/namshi-jose)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M52](/packages/php-open-source-saver-jwt-auth)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M66](/packages/auth0-auth0-php)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[adhocore/jwt

Ultra lightweight JSON web token (JWT) library for PHP5.5+.

3031.6M15](/packages/adhocore-jwt)

PHPackages © 2026

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