PHPackages                             jvcalderon/token-service - 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. [API Development](/categories/api)
4. /
5. jvcalderon/token-service

ActiveProject[API Development](/categories/api)

jvcalderon/token-service
========================

A dockerized microservice who provides a REST interface with token's common functionality

1.0(9y ago)114MITPHPPHP ^7.0

Since Jan 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jvcalderon/TokenService)[ Packagist](https://packagist.org/packages/jvcalderon/token-service)[ RSS](/packages/jvcalderon-token-service/feed)WikiDiscussions master Synced 1mo ago

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

Token service
=============

[](#token-service)

[![SensioLabsInsight](https://camo.githubusercontent.com/13818ecd1d67cf2ac044259840470ac9a2925fcbbe1ca8854d035627e4ba0b95/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39663035666133392d626634612d346532342d623332392d3139333262646163373062642f6d696e692e706e67)](https://insight.sensiolabs.com/projects/9f05fa39-bf4a-4e24-b329-1932bdac70bd)

A dockerized microservice who provides a REST interface with token's common functionality.

Installation
------------

[](#installation)

You need Composer to install dependencies:

```
$ composer install #use --no-dev option in a production environment
```

Now you must up Docker containers by docker-compose. This command will build a PHP container with XDEBUG configuration (recommended for develop purposes):

```
$ export ENV=dev; docker-compose -f docker-compose.yml -f ./config/docker/${ENV}/docker-compose.yml up --build -d
```

In a production environment is recommended the following command without XDEBUG config:

```
$ export ENV=prod; docker-compose up --build -d
```

### Create database schema

[](#create-database-schema)

Use doctrine binary to create DB schema:

```
$ php bin/doctrine orm:schema-tool:create
```

Debugging with XDEBUG:
----------------------

[](#debugging-with-xdebug)

You must to keep in mind that the Xdebug's default port (9000) has been replaced by 9089 to avoid collision with PHP CGI. Remote host IP is 10.254.254.254 (de facto standard host address alias) so you need to create the alias:

```
$ ifconfig lo0 alias 10.254.254.254
```

If you are using MacOS I recommend to read: [Docker (Mac) De-facto Standard Host Address Alias](https://gist.github.com/ralphschindler/535dc5916ccbd06f53c1b0ee5a868c93)

Basic use
---------

[](#basic-use)

Now you can use the REST API to consume the service:

   **Route** **Method** **Params** **Description**     **/** **POST** **-** **Create a new token. you can get it by 'Location' response header. This token expires in 14 days of inactivity.**   **/{tokenId}** **GET** **-** **Retrieve the token data in hal+json format and update expiration datetime.**   **/{tokenId}** **DELETE** **-** **Expires the token.**

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

3393d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56b5357249498d109c041ff0031d467126e8a0df5312a91985bb0c4b7fb7ceb7?d=identicon)[jvcalderon](/maintainers/jvcalderon)

---

Top Contributors

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

---

Tags

tokendddhexagonal-architectureMicroservice

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jvcalderon-token-service/health.svg)

```
[![Health](https://phpackages.com/badges/jvcalderon-token-service/health.svg)](https://phpackages.com/packages/jvcalderon-token-service)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M151](/packages/sulu-sulu)[prooph/service-bus-symfony-bundle

88392.2k3](/packages/prooph-service-bus-symfony-bundle)

PHPackages © 2026

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