PHPackages                             nehalvpatel/synapse - 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. nehalvpatel/synapse

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

nehalvpatel/synapse
===================

Synapse saves sessions to the database

1.0.1(12y ago)116MITPHPPHP &gt;=5.4.0

Since Mar 19Pushed 12y ago1 watchersCompare

[ Source](https://github.com/nehalvpatel/Synapse)[ Packagist](https://packagist.org/packages/nehalvpatel/synapse)[ Docs](https://github.com/nehalvpatel/Synapse)[ RSS](/packages/nehalvpatel-synapse/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Synapse [![Build Status](https://camo.githubusercontent.com/5748b146d4b15474e2a8e1147431649658801f5b9356044fc7a1679ce13ea9f7/68747470733a2f2f6170692e7472617669732d63692e6f72672f6e6568616c76706174656c2f53796e617073652e706e67)](https://camo.githubusercontent.com/5748b146d4b15474e2a8e1147431649658801f5b9356044fc7a1679ce13ea9f7/68747470733a2f2f6170692e7472617669732d63692e6f72672f6e6568616c76706174656c2f53796e617073652e706e67)
=========================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#synapse-)

Synapse saves sessions to the database.

### Requirements

[](#requirements)

- PHP 5.4 and up
- MySQL

### Getting Started

[](#getting-started)

1. Install composer
2. Add the [package](https://packagist.org/packages/nehalvpatel/synapse) to your composer.json
3. Run composer

### Example

[](#example)

1. Pass a PDO object to the handler class (a table called "sessions" will be auto generated)
2. Set the save handler to use the class
3. Start the session

```
  require 'vendor/autoload.php';

  $Synapse = new \Synapse\Handler(new PDO("mysql:host=" . $db_host . ";dbname=" . $db_name, $db_username, $db_password));
  session_set_save_handler($Synapse, true);
  session_start();

  $_SESSION["user_id"] = "1";
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.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 ~0 days

Total

2

Last Release

4486d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b18cd6b260727c07d53d98a5435caea3f79463e0a7e83f95bb37ae6e0f48df24?d=identicon)[nehalvpatel](/maintainers/nehalvpatel)

---

Top Contributors

[![nehalvpatel](https://avatars.githubusercontent.com/u/159021?v=4)](https://github.com/nehalvpatel "nehalvpatel (11 commits)")[![sobit](https://avatars.githubusercontent.com/u/1245542?v=4)](https://github.com/sobit "sobit (1 commits)")

---

Tags

databasesessionsOOP

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nehalvpatel-synapse/health.svg)

```
[![Health](https://phpackages.com/badges/nehalvpatel-synapse/health.svg)](https://phpackages.com/packages/nehalvpatel-synapse)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k595.8M6.5k](/packages/doctrine-dbal)[doctrine/orm

Object-Relational-Mapper for PHP

10.2k295.3M7.2k](/packages/doctrine-orm)[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k249.9M3.9k](/packages/doctrine-doctrine-bundle)[doctrine/migrations

PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a powerful tool.

4.8k212.9M510](/packages/doctrine-migrations)[doctrine/data-fixtures

Data Fixtures for all Doctrine Object Managers

2.9k141.0M566](/packages/doctrine-data-fixtures)[robmorgan/phinx

Phinx makes it ridiculously easy to manage the database migrations for your PHP app.

4.5k48.7M443](/packages/robmorgan-phinx)

PHPackages © 2026

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