Skip to content

A SessionHandlerInterface implementation for PHP 7.4+

License

Notifications You must be signed in to change notification settings

chillerlan/php-session

Repository files navigation

chillerlan/php-session

A SessionHandlerInterface implementation for PHP 7.2+

version license Travis Coverage Scrunitizer Packagist downloads PayPal donate

Documentation

Requirements

  • PHP 7.2+
  • the Sodium extension for session encryption

Installation

requires composer

composer.json (note: replace dev-master with a version boundary)

{
	"require": {
		"php": ">=7.0.3",
		"chillerlan/php-session": "dev-master"
	}
}

Manual installation

Download the desired version of the package from master or release and extract the contents to your project folder. After that:

  • run composer install to install the required dependencies and generate /vendor/autoload.php.
  • if you use a custom autoloader, point the namespace chillerlan\Session to the folder src of the package

Profit!

Usage

  • @todo