O2Session is an Open Source Native PHP Session Management Handler Library. Allows different storage engines to be used. All but file-based storage require specific server requirements, and a Fatal Exception will be thrown if server requirements are not met. Another amazing product from Circle Creative, released under MIT License.
O2Session is build for working more powerfull with O2System Framework, but also can be used for integrated with others as standalone version with limited features.
O2Session is insipired by CodeIgniter Session Driver, so O2Session is has same method functions.
| Engine | Support | Tested | |
|---|---|---|---|
| APC | Yes |
Yes |
http://php.net/apc |
| eAccelerator | Soon |
Soon |
http://eaccelerator.net |
| File | Yes |
Yes |
http://php.net/file |
| Memcached | Yes |
Yes |
http://php.net/memcached |
| MongoDB | Soon |
Soon |
https://www.mongodb.com |
| Zend OPCache | Soon |
Soon |
http://php.net/opcache |
| Redis | Yes |
Yes |
http://redis.io |
| SSDB | Soon |
Soon |
http://ssdb.io |
| Wincache | Yes |
Yes |
http://php.net/wincache |
| XCache | Yes |
Yes |
https://xcache.lighttpd.net/ |
The best way to install O2Session is to use Composer
composer require o2system/o2session
Packagist: https://packagist.org/packages/o2system/o2session
use O2System\Session;
// Initialize O2Session Instance using APC Storage Engine
$session = new Session(['handler' => 'apc']);
// Set session userdata
$session->set('foo', ['bar' => 'something']);
// Get session userdata
$foo = $session->get('foo');More details at the Documentation.
Please kindly mail us at o2system.framework@gmail.com
Please kindly submit your issues at Github so we can track all the issues along development.
| Role | Name |
|---|---|
| Founder and Lead Projects | Steeven Andrian Salim |
| Documentation | Steeven Andrian Salim, Ayun G. Wibowo |
Special Thanks To: Yudi Primaputra (CTO - PT. YukBisnis Indonesia)