PHPackages                             drupol/drupal7\_session\_services - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. drupol/drupal7\_session\_services

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

drupol/drupal7\_session\_services
=================================

Provides Session services to connect to Drupal 7 session management.

0.1.0(8y ago)037MITPHPPHP ^5.6 || ^7.0 || ^7.1

Since Nov 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/drupol/drupal7_session_services)[ Packagist](https://packagist.org/packages/drupol/drupal7_session_services)[ RSS](/packages/drupol-drupal7-session-services/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/a947e5375ecb98c20e589a03597c4bab194ef5e361bde39fb64bd1a2c9c21efa/68747470733a2f2f7777772e7472617669732d63692e6f72672f647275706f6c2f64727570616c375f73657373696f6e5f73657276696365732e7376673f6272616e63683d6d6173746572)](https://www.travis-ci.org/drupol/drupal7_session_services)

Drupal 7 Session Services
=========================

[](#drupal-7-session-services)

This library provides a session storage handler for using the Drupal 7 session mechanism with HTTPFoundation Symfony's session component.

If you need to use Drupal 7 and a library that rely on Symfony's HTTPFoundation component for handling sessions, you will need this to share session information between the library and Drupal.

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

[](#installation)

```
composer require drupol/drupal7_session_services
```

Usage
-----

[](#usage)

```
  session:
    class: Symfony\Component\HttpFoundation\Session\Session
    arguments: ['@session_storage', '@attribute_bags', '@flash_bag']

  session_storage:
    class: Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage
    arguments: [[], '@session_handler', null]

  session_handler:
    class: drupol\drupal7_session_services\Session\Storage\Handler\Drupal7SessionHandler

  attribute_bags:
    class: Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag

  flash_bag:
    class: Symfony\Component\HttpFoundation\Session\Flash\FlashBag
```

or with PHP:

```
  $drupal7SessionHandler = new \drupol\drupal7_session_services\Session\Storage\Handler\Drupal7SessionHandler();
  $sessionstorage = new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([], $drupal7SessionHandler, null);
  $attributeBag = new \Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag();
  $flashBag = new \Symfony\Component\HttpFoundation\Session\Flash\FlashBag();

  $session = new \Symfony\Component\HttpFoundation\Session\Session($sessionstorage, $attributeBag, $flashBag);
```

Run the tests
-------------

[](#run-the-tests)

```
composer install
./vendor/bin/grumphp run
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~55 days

Total

3

Last Release

2998d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a5b33672e6fed2f03fee680279b6bddb884ca494237764e8c4dbb2c77e8bf05?d=identicon)[drupol](/maintainers/drupol)

---

Top Contributors

[![drupol](https://avatars.githubusercontent.com/u/252042?v=4)](https://github.com/drupol "drupol (1 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/drupol-drupal7-session-services/health.svg)

```
[![Health](https://phpackages.com/badges/drupol-drupal7-session-services/health.svg)](https://phpackages.com/packages/drupol-drupal7-session-services)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
