PHPackages                             modulusphp/hibernate - 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. [Database &amp; ORM](/categories/database)
4. /
5. modulusphp/hibernate

AbandonedArchivedPackage[Database &amp; ORM](/categories/database)

modulusphp/hibernate
====================

Hibernate for Modulus

1.9.3.4(6y ago)2924MITPHP

Since Oct 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/modulusphp/hibernate)[ Packagist](https://packagist.org/packages/modulusphp/hibernate)[ RSS](/packages/modulusphp-hibernate/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (5)Versions (20)Used By (4)

Modulus Hibernate Component
===========================

[](#modulus-hibernate-component)

This component is responsible for Modulus' caching, handling Queues and also extends Eloquent Models.

Install
-------

[](#install)

This package is automatically installed with the Modulus Framework.

```
composer require modulusphp/hibernate

```

Getting Started
---------------

[](#getting-started)

#### Session (alpha)

[](#session-alpha)

A more secure session handler. Hibernate's session handler is more secure and supports more Store Driver's than Modulus's default Blulight Session handler.

To switch to Hibernate's session handler, go to the `index.php` file in the public directory, and remove `Blulight`.

Then register the following middleware's in the `HttpFoundation` class:

```
\Modulus\Hibernate\Session\Middleware\StartSession::class,
\Modulus\Hibernate\Session\Middleware\ShareSessionData::class,
```

Once that has been done, head over to the `VerifyCsrfToken` class and extend Hibernate's `VerifyCsrfToken` class:

> Note, this may not work

```
use Modulus\Hibernate\Session\Middleware\VerifyCsrfToken as Middleware;

class VerifyCsrfToken extends Middleware
{
  ...
```

Now, update the `session.php` config file with the following content:

```
