Download the PHP package zegnat/mintoken without Composer

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

Mintoken

A minimal IndieAuth compatible Token Endpoint.

Several times I have been asked if there is a token endpoint available to be used together with Selfauth. A minimal solution that would just work for issuing access tokens that is self-hostable on a server with PHP.

I do not have a need for a token endpoint like this myself, thus developing one would go against my selfdogfooding principles. But because I have a general interest in the IndieAuth specification, here is an implementation anyway!

Setup

  1. Download the latest release from GitHub and extract the files.

  2. Create an SQLite database; these instructions assume the database is called tokens.db.

    You can do this from the command line:

    If you prefer, create the SQLite database by your favourite means and use schema.sql to create the expected tables.

  3. Define trusted authorization endpoints in the settings table of the SQLite database. Mintoken will only check codes with these endpoints, and takes the me value they return as trusted without further verification.

    E.g. if we take the example setup for Selfauth, the endpoint https://example.com/auth/ should be whitelisted.

    From the command line:

  4. Upload the SQLite database to a secure directory on your server. Make sure it is not publicly available to the web! This is very important for security reasons.

  5. Edit endpoint.php so line 5 defines the correct path to the SQLite database as the value for MINTOKEN_SQLITE_PATH.

    You should use the full path to tokens.db. For example, define('MINTOKEN_SQLITE_PATH', '../../tokens.db');

  6. Put endpoint.php anywhere on your server where it is available to the web. (This can be in the same folder as Selfauth, for simplicity.)

  7. Make the token endpoint discoverable. Either by defining a Link HTTP header, or adding the following to the <head> of the pages where you also link to your authorization_endpoint:

    (The href must point at your endpoint.php file.)

License

The BSD Zero Clause License (0BSD). Please see the LICENSE file for more information.


All versions of mintoken with dependencies

PHP Build Version
Package Version
No informations.
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 zegnat/mintoken contains the following files

Loading the files please wait ....