Skip to content

arrilot/sessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Total Downloads Build Status Scrutinizer Quality Score

Laravel-like framework agnostic session package

Use Laravel session Api to work with plain-old php sessions in any project

Installation

  1. composer require arrilot/sessions

  2. Register a service provider anywhere in your bootstrap code.

Arrilot\Sessions\SessionProvider::register();

Usage

Arrilot\Sessions\Session is the main class provided by the package. You can treat this class just like the Laravel Session facade and call literally any method listed here + Session::now() from 5.1.

Example:

use Arrilot\Sessions\Session;

Session::flash('message', 'Email was sent');

Note that the package does not actually require laravel session component. It provides Laravel API to work with built-in php sessions ($_SESSION) instead.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages