atakde/psession

PHP library for php sessions

Maintainers

Package info

github.com/atakde/psession

pkg:composer/atakde/psession

Statistics

Installs: 90

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

V1.0.1 2022-11-06 09:28 UTC

This package is not auto-updated.

Last update: 2026-03-09 00:28:45 UTC


README

PHP library for handling sessions

Installation

Install via composer

composer require atakde/psession

Usage

<?php

require_once __DIR__ . '/vendor/autoload.php';

use Atakde\PSession\PSession;

// http only true
$session = new PSession([
    'cookie_httponly' => true,
]);

$session->start();
$session->set('name', 'John');
echo $session->get('name');

$session->destroy();

Features

  • Allowed dot notation both get & set
Session::get('user.name');
Session::set('user.name', 'Testing');