PHPackages                             awixe/session - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. awixe/session

ActiveLibrary

awixe/session
=============

A session handler that acts as a wrapper

1.0.0(8y ago)3181GPL-3.0PHPPHP ^7.0

Since Oct 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Awixe/Session)[ Packagist](https://packagist.org/packages/awixe/session)[ Docs](https://github.com/Awixe/Session)[ RSS](/packages/awixe-session/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)DependenciesVersions (6)Used By (0)

Session module - A session handler that acts as a wrapper
=========================================================

[](#session-module---a-session-handler-that-acts-as-a-wrapper)

[![StyleCI](https://camo.githubusercontent.com/47cdef491a6b3b2f0ed8d6c8b0a4d427724d376e6ef83cae18f59818e46994b6/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130373439313630362f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/107491606) [![PHPVersion](https://camo.githubusercontent.com/ad95a1ecdc0bcf29902f96cb17dd617a38bc27d1b4d612318a03e0a58b4618a5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230372e302e302d626c75652e7376673f7374796c653d666c61742d737175617265)](https://secure.php.net/) [![License](https://camo.githubusercontent.com/04c7d280d6306e5b72f240e09209df50fcdeb9ba04493abbbd08f6e9c4a0fdef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c2d2d332e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://choosealicense.com/licenses/gpl-3.0/)

This module was designed as a wrapper so it could be injected into the pimple. It can also be used another way. For example, you can call the class directly and call any function statically to achieve the same result. It uses the native `$_SESSION[]` session variable array. We suggest you use this through pimple's dependency injector.

Install
-------

[](#install)

There are two ways you can install this module. By using composer or by downloading directly, but if you download it directly and requires more steps you can view all the available downloads at  so we recommend you use composer to make it simple.

With composer:

```
composer require awixe/session
```

Usage
-----

[](#usage)

If you are using the awixe module adapter than you can access it through the app function else if you are not use the awixe adapter then you have to declare a new object to use it.

Example #1:

```
