Download the PHP package jvcalderon/token-service without Composer

On this page you can find all versions of the php package jvcalderon/token-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package token-service

Token service

SensioLabsInsight

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

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

Use doctrine binary to create DB schema:

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

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

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.

All versions of token-service with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
silex/silex Version ~2.0
carlosbuenosvinos/ddd Version ^1.6
doctrine/orm Version ^2.5
symfony/yaml Version ^3.2
willdurand/hateoas Version ^2.10
jms/serializer Version ^1.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jvcalderon/token-service contains the following files

Loading the files please wait ...