Download the PHP package abollinger/session without Composer

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

Abollinger\Session

Abollinger\Session is a PHP library designed to manage user session-related functionalities. It offers an easy-to-use interface for session management, user authentication, login, and logout processes, leveraging PHP's native session handling mechanisms and SQLite for token storage.

Features

Requirements

Installation

You can install the Abollinger\Session package using Composer. Run the following command:

Then, include the Composer autoloader in your project:

Usage

Initialization

Login

Authentication Check

Logout

API Reference

Constructor

__construct() Initializes a session if none exists and sets up the SQLite connection.

Methods

isLoggedAndAuthorized(bool $isSameServer = false): bool

Description: Checks if a user is logged in and authorized.

login(array $arr): void

Description: Logs in a user by setting session variables and saving the token to the database.

logout(array $arr): void

Description: Logs out a user by removing session variables, deleting the token from the database, and destroying the session.

Example Workflow

  1. Start a session:

  2. Log in a user:

  3. Verify user authentication:

  4. Log out the user:

Licence

This library is licensed under the MIT License. For full license details, see the LICENCE file distributed with this source code.

Author

Antoine Bollinger Email: [email protected]

For contributions, issues, or feedback, feel free to contact the author or open a GitHub issue.


All versions of session 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 abollinger/session contains the following files

Loading the files please wait ....