Download the PHP package eftec/authone without Composer

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

AuthOne

This minimalist library is a simple authentication system that allow different types of Authentication.

Packagist Total Downloads [Maintenance]() [composer]() [php]() [php]() [CocoaPods]()

Features Supported

Type of Authentication (how the authentication will work)

PHP Session User and Password Token JWTLITE

Type of user storage (where the user will be stored and validate when login)

Type of Token storage (where the temporary information will be keep). The system also allows to use the Cache library as storage.

Actions allowed for Authentication

Note: However, not all methods allows all those operations. For example, user and password authentication can't be invalidated or renewed.

Actions allowed for Storage

Example using Token and PDO

Types of authentication

PHP Session

PHP Session depends on the configuration of the sessions of PHP. By default, PHP creates a new session in a file, and it uses the Session ID to recover the information store in the session.

While PHP session uses (by default) cookies, this library is agnostic and the session-id could be sent and received via url, HTML header or cookies.

Features enabled

Token Authentication.

It is similar to PHP session, but it doesn't rely on the system of PHP for the authentication. It is based in a token that is a 64-character code that the Client could use for authentication.

This token is stored in the cache server.

Features enabled

User and Password

It is the most basic type of authentication. The customer must send the user and password per every validation. If you use this validation, then login and validation works in the same way.

Features enabled

JWTlite token Bearer

It works using the customer and server talk each other's sending the content of the user and a CRC validator (as a TOKEN) each time.

This kind of authentication allows to simplify the authentication in a system that relies on in multiple server. Instead of require a server to validate the token, it uses the own token as validation.

It is safe because the content of the token can't be modified or edited.

This method is not compatible with JWT because the structure is different

Structure of the value returned by login

While JWT has the next structure (serialized as BASE64)

Structure of the value required to validate

Features enabled

Types of configuration

Configuration of the PDO store.

Configuration of the document store.

Configuration of the token store

Changelog

Licence

Copyright: Jorge Castro Castillo (2022) Dual License, LGPL and Commercial.


All versions of authone with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
ext-json Version *
eftec/cacheone Version ^2.12
ext-openssl 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 eftec/authone contains the following files

Loading the files please wait ....