2017 © Pedro Peláez
 

library session

A session handler that acts as a wrapper

image

awixe/session

A session handler that acts as a wrapper

  • Saturday, October 21, 2017
  • by Awixe
  • Repository
  • 1 Watchers
  • 2 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Session module - A session handler that acts as a wrapper

StyleCI PHPVersion License, (*1)

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., (*2)

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 https://github.com/Awixe/Session/releases so we recommend you use composer to make it simple., (*3)

With composer:, (*4)

composer require awixe/session

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., (*5)

Example #1:, (*6)

set('hello', 'world');

// Get a session variable
if (app('session')->get('hello')) {

    // Save result
    $output = [
        app('session')->get('hello')
    ];
}

// Delete a session variable
app('session')->del('hello');

// Print the result
print_r($output);

if (app('session')->get('hello')) {
    print(app('session')->get('hello'));
} else {
    var_dump(app('session')->get('hello'));
}

?>

Example #2:, (*7)

set('hello', 'world');

// Get a session variable
if ($session->get('hello')) {

    // Save result
    $output = [
        $session->get('hello')
    ];
}

// Delete a session variable
$session->del('hello');

// Print the result
print_r($output);

if ($session->get('hello')) {
    print($session->get('hello'));
} else {
    var_dump($session->get('hello'));
}

?>

Conclusion

  • Framework: https://github.com/Awixe/Framework
  • Issues: https://github.com/Awixe/Session/issues

The Versions

21/10 2017

dev-master

9999999-dev https://github.com/Awixe/Session

A session handler that acts as a wrapper

  Sources   Download

GPL-3.0

The Requires

  • php ^7.0

 

php php7 php-library php-framework php-sessions

20/10 2017

dev-analysis-qBQQrO

dev-analysis-qBQQrO https://github.com/Awixe/Session

A session handler that acts as a wrapper

  Sources   Download

GPL-3.0

The Requires

  • php ^7.0

 

The Development Requires

php php7 php-library php-framework php-sessions

20/10 2017

dev-analysis-q2mmrB

dev-analysis-q2mmrB https://github.com/Awixe/Session

A session handler that acts as a wrapper

  Sources   Download

GPL-3.0

The Requires

  • php ^7.0

 

The Development Requires

php php7 php-library php-framework php-sessions

20/10 2017

dev-analysis-zGaaOk

dev-analysis-zGaaOk https://github.com/Awixe/Session

A session handler that acts as a wrapper

  Sources   Download

GPL-3.0

The Requires

  • php ^7.0

 

php php7 php-library php-framework php-sessions

19/10 2017

dev-analysis-XVgA03

dev-analysis-XVgA03 https://github.com/Awixe/Session

A session handler that acts as a wrapper

  Sources   Download

GPL-3.0

The Requires

  • php ^7.0

 

php php7 php-library php-framework php-sessions

19/10 2017

1.0.0

1.0.0.0 https://github.com/Awixe/Session

A session handler that acts as a wrapper

  Sources   Download

GPL-3.0

The Requires

  • php ^7.0

 

php php7 php-library php-framework php-sessions