PHPackages                             tobias/zend-expressive-session-zf1 - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. tobias/zend-expressive-session-zf1

ActiveLibrary[HTTP &amp; Networking](/categories/http)

tobias/zend-expressive-session-zf1
==================================

ext-session persistence adapter for zend-expressive-session and compatible to ZF1

0.1.0(7y ago)311MITPHPPHP ^7.1

Since Nov 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tobias-trozowski/zend-expressive-session-zf1)[ Packagist](https://packagist.org/packages/tobias/zend-expressive-session-zf1)[ Docs](https://github.com/tobias/zend-expressive-session-zf1)[ RSS](/packages/tobias-zend-expressive-session-zf1/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

[![Build status](https://camo.githubusercontent.com/9186187e5eca9f1f8fecbd01f3d1f76dc9a9c0377e88235a06c4304f831db640/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746f626961732d74726f7a6f77736b692f7a656e642d657870726573736976652d73657373696f6e2d7a66312f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/tobias-trozowski/zend-expressive-session-zf1)[![Coverage Status](https://camo.githubusercontent.com/86fb0a5a8bf794bd304cba79777c4d27bc0bcddb43d36d4a6f524b850d9c5b3a/687474703a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f746f626961732d74726f7a6f77736b692f7a656e642d657870726573736976652d73657373696f6e2d7a66312e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/tobias-trozowski/zend-expressive-session-zf1?branch=master)

Zend Expressive ZF1 Compatible Session
======================================

[](#zend-expressive-zf1-compatible-session)

Provides an ZF1 compatible ext-session persistence adapter for use with [zend-expressive-session](https://docs.zendframework.com/zend-expressive-session).

Inspired and based on [zend-expressive-session-ext](https://docs.zendframework.com/zend-expressive-session-ext/).

Installation
------------

[](#installation)

Run the following to install this library::

```
$ composer require tobias/zend-expressive-session-zf1

```

Configuration
-------------

[](#configuration)

If your application uses the [zend-component-installer](https://docs.zendframework.com/zend-component-installer)Composer plugin, your configuration is complete; the shipped `Tobias\Zend\Expressive\Zf1Session\ConfigProvider` registers the `Tobias\Zend\Expressive\Zf1Session\Persistence\SessionPersistence` service, as well as an alias to `SessionPersistence` it under the name `Zend\Expressive\Session\SessionPersistenceInterface`.

You can add the `Tobias\Zend\Expressive\Zf1Session\ConfigProvider` manually to your `config/config.php` e.g.:

```
$aggregator = new ConfigAggregator(
    [
        // ...

        \Zend\Expressive\Session\ConfigProvider::class,
        \Tobias\Zend\Expressive\Zf1Session\ConfigProvider::class,

        // ...
    ]);
```

Otherwise, you will need to map `Zend\Expressive\Session\SessionPersistenceInterface`to `Tobias\Zend\Expressive\Zf1Session\Persistence\SessionPersistence` in your dependency injection container.

In addition to this you can configure all [parameters](http://php.net/manual/de/function.session-start.php#refsect1-function.session-start-parameters)passed to the session via configuration, e.g. `config/autoload/session-params.global.php`

```
