Download the PHP package fachsimpeln/easyjwt without Composer

On this page you can find all versions of the php package fachsimpeln/easyjwt. 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 easyjwt

EasyJWT

An easy-to-use implementation of of JWT Standard (JSON Web Tokens)

What is JWT?

JSON Web Token (JWT [...]) is an internet standard for creating JSON-based access tokens. [...] For example, a server could generate a token that has the claim "logged in as admin" and provide that to a client. The client could then use that token to prove that it is logged in as admin. The tokens can be signed by one party's private key (usually the server's) so that party can subsequently verify the token is legitimate. If the other party, by some suitable and trustworthy means, is in possession of the corresponding public key, they too are able to verify the token's legitimacy. The tokens are designed to be compact, URL-safe, and usable especially in a web-browser single-sign-on (SSO) context. JWT claims can typically be used to pass identity of authenticated users between an identity provider and a service provider, or any other type of claims as required by business processes.

~ taken from Wikipedia

Why EasyJWT?

EasyJWT is intended to provide a version of JWT that is particularly easy to implement. So far only the easy to understand symmetric signing methods are used.

The library also supports the symmetric encryption of the JWT token with AES (using openssl), if confidential or sensitive information is to be stored in JWT.

PHP Packagist Packagist

CodeFactor License

Install via Composer

Install without Composer

  1. Clone this repository
  2. Include ./lib/JWT.inc.php

Documentation

Usage documentation can be found in the Wiki. The documentation for the code can be found in docs/

Supported Algorithms

Signing Algorithm What is this?
HS256 HMAC-SHA256
HS384 HMAC-SHA384
HS512 HMAC-SHA512
none not recommended
Encryption Algorithm What is this?
AES-256-GCM OpenSSL AES Encryption

Example Code

Create a new JWT

Read a JWT from cookies

More

These examples can also be found in the folder sample/


All versions of easyjwt with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
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 fachsimpeln/easyjwt contains the following files

Loading the files please wait ....