Download the PHP package bradchesney79/effortless-hs256-jwt without Composer

On this page you can find all versions of the php package bradchesney79/effortless-hs256-jwt. 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 effortless-hs256-jwt

I believe I have brought the library to a usable and critiquable state. As of now, December of 2020, I consider this library beta code.

I created this package because I didn't love the existing libraries out there. Also, this package has only a dependency on the PDO database driver, JSON, and mbstring extensions being avaialble.

So, this is a low level library designed to:

Step 1 - Install:

You will need a modern version of PHP installed, PHP v7.4+.

Add via composer or git clone, or wget the class file, or good old cut/paste and require_once()

Ccreate the object with 'secret' parameter as such:

Step 1a

Unwashed heathens that resist using composer will need something like this:

require_once, include, include_once... only you will really know what is best for you.

Installation via composer is not required-- I just think it is the best way

Step 2 - Usage with Composer:

Make the code available:

Be sure to do the completely normal PHP require or require_once of vendor/autoload.php

Create a token, append/update claims, get the token string:

Validate a token, read token claims, remove token claims:

Step A - Test:

Ensure that the phpdbg and xdebug extensions are avaialble to make developer life easier on yourself

Run the tests with the PHPUnit installed in the dev dependencies

You need to set up the database and provide valid connection credentials

Step B - Count Lines of Code:

11/2020 1,800 12/2020 1,638 05/2021 1,048

ToDo:

Caveats:


All versions of effortless-hs256-jwt with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
ext-mbstring Version *
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 bradchesney79/effortless-hs256-jwt contains the following files

Loading the files please wait ....