Skip to content

Commit 8cc68ab

Browse files
committed
Added readme
1 parent 4653803 commit 8cc68ab

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# PSR-6 Session handler
2+
[![Latest Stable Version](https://poser.pugx.org/cache/session-handler/v/stable)](https://packagist.org/packages/cache/session-handler) [![codecov.io](https://codecov.io/github/php-cache/session-handler/coverage.svg?branch=master)](https://codecov.io/github/php-cache/session-handler?branch=master) [![Build Status](https://travis-ci.org/php-cache/session-handler.svg?branch=master)](https://travis-ci.org/php-cache/session-handler) [![Total Downloads](https://poser.pugx.org/cache/session-handler/downloads)](https://packagist.org/packages/cache/session-handler) [![Monthly Downloads](https://poser.pugx.org/cache/session-handler/d/monthly.png)](https://packagist.org/packages/cache/session-handler) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
3+
4+
This is a PHP session handler that supports PSR-6 cache. It is a part of the PHP Cache organisation. Find more
5+
documentation at [www.php-cache.com](http://www.php-cache.com).
6+
7+
8+
### Install
9+
10+
```bash
11+
composer require cache/session-handler
12+
```
13+
14+
### Configure
15+
16+
```php
17+
$pool = new ArrayCachePool();
18+
$config = ['ttl'=>3600, 'prefix'=>'foobar'];
19+
20+
$sessionHandler = new Psr6SessionHandler($pool, $config);
21+
```
22+
23+
### Contribute
24+
25+
Contributions are very welcome! Send us a pull request or report any issues you find on the [issue tracker](https://github.com/php-cache/issues/issues).

0 commit comments

Comments
 (0)