PHPackages                             rapidwebltd/zebra-session-loader - 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. rapidwebltd/zebra-session-loader

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

rapidwebltd/zebra-session-loader
================================

This library automatically starts Zebra sessions (database powered sessions) wherever vendor/autoload.php is included. It can be useful if you need to add database powered sessions to a bespoke PHP application that lacks an existing framework.

v1.0.1(8y ago)1371LGPL-3.0-onlyPHP

Since Oct 10Pushed 8y ago3 watchersCompare

[ Source](https://github.com/rapidwebltd/zebra-session-loader)[ Packagist](https://packagist.org/packages/rapidwebltd/zebra-session-loader)[ RSS](/packages/rapidwebltd-zebra-session-loader/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Zebra Session Loader
====================

[](#zebra-session-loader)

This library automatically starts Zebra sessions (database powered sessions) wherever `vendor/autoload.php` is included. It can be useful if you need to add database powered sessions to a bespoke PHP application that lacks an existing framework.

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

[](#installation)

1. Run `composer require rapidwebltd/zebra-session-loader`.
2. Create a `session_data` table in your MySQL database to hold session data. You can use the SQL below to do this.

```
CREATE TABLE `session_data` (
  `session_id` varchar(32) NOT NULL default '',
  `hash` varchar(32) NOT NULL default '',
  `session_data` blob NOT NULL,
  `session_expire` int(11) NOT NULL default '0',
  PRIMARY KEY  (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
```

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

[](#configuration)

Add the following to your `.env` file, changing the database connection details to point at the database containing your `session_data` table.

You should also ensure the security code is changed to a random string.

```
ZEBRA_SESSION_SECURITY_CODE=random_string_of_chars_og4bf42kh07odgh20gjwe
ZEBRA_SESSION_DATABASE_CONNECTION_NAME=main

DCOM_MAIN_OBJECT_TYPE=mysqli    # Must be a mysqli object
DCOM_MAIN_DATABASE_TYPE=mysql

DCOM_MAIN_DATABASE_HOST=localhost
DCOM_MAIN_DATABASE_USERNAME=root
DCOM_MAIN_DATABASE_PASSWORD=password
DCOM_MAIN_DATABASE_NAME=dbname

```

Now any page that includes `vendor/autoload.php` will automatically use database powered sessions, provided by Zebra sessions.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~112 days

Total

2

Last Release

3065d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

---

Top Contributors

[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (2 commits)")[![kirsty-gasston](https://avatars.githubusercontent.com/u/12949343?v=4)](https://github.com/kirsty-gasston "kirsty-gasston (1 commits)")

---

Tags

databasephpzebra-sessions

### Embed Badge

![Health badge](/badges/rapidwebltd-zebra-session-loader/health.svg)

```
[![Health](https://phpackages.com/badges/rapidwebltd-zebra-session-loader/health.svg)](https://phpackages.com/packages/rapidwebltd-zebra-session-loader)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[yemenopensource/filament-excel

This package useful for importing excel files into models.

194.2k](/packages/yemenopensource-filament-excel)

PHPackages © 2026

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