PHPackages                             madwings/insanedb - 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. madwings/insanedb

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

madwings/insanedb
=================

InasaneDB is a Database Toolkit for PHP forked from CodeIgniter 3

v1.3.1(6mo ago)02951MITPHPPHP &gt;=7.1CI passing

Since Nov 12Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/madwings/InsaneDB)[ Packagist](https://packagist.org/packages/madwings/insanedb)[ Docs](https://github.com/madwings/InsaneDB)[ RSS](/packages/madwings-insanedb/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (18)Used By (0)

[![](https://github.com/madwings/InsaneDB/actions/workflows/test-phpunit.yml/badge.svg)](https://github.com/madwings/InsaneDB/actions/workflows/test-phpunit.yml)What is InsaneDB
----------------

[](#what-is-insanedb)

InsaneDB is a database toolkit for PHP forked from CodeIgniter 3 database layer. Its goal is to remove limitations existing in the upstream version and add additional functionalities while keeping in sync with CodeIgniter. It can be used as a standalone package or as a replacement to the CodeIgniter database layer.

### Installation

[](#installation)

#### Replacement for the CodeIgniter database layer

[](#replacement-for-the-codeigniter-database-layer)

- Replace all files and directories in your `system/database` directory.
- Replace `application/config/database.php` file.

### Changelog and New Features

[](#changelog-and-new-features)

You can find a list of all changes in the upstream version in the [user guide change log](https://github.com/bcit-ci/CodeIgniter/blob/develop/user_guide_src/source/changelog.rst).

#### InsaneDB Major Changes

[](#insanedb-major-changes)

##### New features

[](#new-features)

> - Added Read/Write connections mode.
> - Read delay option in Read/Write connections mode.
> - Automatic reconnect on dropped connection for the MySQL and PostgreSQL drivers.

##### Improvements

[](#improvements)

> - PDO adapter drivers replacing all vendor specific drivers(where applicable).
> - Added option for manual setting the size of the batch query functions.
> - General simplifications of the configuration file.
> - Removed \['compress'\] and \['encrypt'\] options, they can be passed by the new \['options'\] variable.
> - Improved `reconnect()`, now working for all the drivers.
> - Improved `num_rows()`, should be faster for big result sets.
> - Added `insert_ignore_batch()` method.
> - Changed parameter order of `insert_batch()` and `insert_ignore_batch()`.
> - Added option which keys to be included in `update_batch()`, `insert_batch()` and `insert_ignore_batch()`.

##### Behaviour bugfix

[](#behaviour-bugfix)

> - Fixed a bug (#) - method `close()` didn't close a connection with valid result object.

### Server Requirements

[](#server-requirements)

PHP version 7.1 or newer is required.

It is recommend to migrate to newer version of PHP sooner than later.

### License

[](#license)

Please see the [license agreement](https://github.com/madwings/InsaneDB/blob/master/license.txt).

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance67

Regular maintenance activity

Popularity14

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 66.1% 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 ~260 days

Recently: every ~559 days

Total

15

Last Release

195d ago

PHP version history (3 changes)1.0rc6PHP &gt;=5.4

1.0rc10PHP &gt;=5.6

v1.1.0PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![narfbg](https://avatars.githubusercontent.com/u/1058011?v=4)](https://github.com/narfbg "narfbg (4052 commits)")[![madwings](https://avatars.githubusercontent.com/u/7276934?v=4)](https://github.com/madwings "madwings (311 commits)")[![gaker](https://avatars.githubusercontent.com/u/42440?v=4)](https://github.com/gaker "gaker (245 commits)")[![timw4mail](https://avatars.githubusercontent.com/u/741525?v=4)](https://github.com/timw4mail "timw4mail (229 commits)")[![ericlbarnes](https://avatars.githubusercontent.com/u/116662?v=4)](https://github.com/ericlbarnes "ericlbarnes (144 commits)")[![vlakoff](https://avatars.githubusercontent.com/u/544424?v=4)](https://github.com/vlakoff "vlakoff (138 commits)")[![toopay](https://avatars.githubusercontent.com/u/534245?v=4)](https://github.com/toopay "toopay (127 commits)")[![jim-parry](https://avatars.githubusercontent.com/u/3203951?v=4)](https://github.com/jim-parry "jim-parry (102 commits)")[![gxgpet](https://avatars.githubusercontent.com/u/13217984?v=4)](https://github.com/gxgpet "gxgpet (84 commits)")[![alexbilbie](https://avatars.githubusercontent.com/u/77991?v=4)](https://github.com/alexbilbie "alexbilbie (84 commits)")[![dchill42](https://avatars.githubusercontent.com/u/630484?v=4)](https://github.com/dchill42 "dchill42 (55 commits)")[![tianhe1986](https://avatars.githubusercontent.com/u/19562319?v=4)](https://github.com/tianhe1986 "tianhe1986 (47 commits)")[![AkenRoberts](https://avatars.githubusercontent.com/u/563886?v=4)](https://github.com/AkenRoberts "AkenRoberts (45 commits)")[![aanbar](https://avatars.githubusercontent.com/u/1263408?v=4)](https://github.com/aanbar "aanbar (43 commits)")[![it-can](https://avatars.githubusercontent.com/u/644288?v=4)](https://github.com/it-can "it-can (41 commits)")[![ivantcholakov](https://avatars.githubusercontent.com/u/1438104?v=4)](https://github.com/ivantcholakov "ivantcholakov (33 commits)")[![purwandi](https://avatars.githubusercontent.com/u/1058672?v=4)](https://github.com/purwandi "purwandi (32 commits)")[![vkeranov](https://avatars.githubusercontent.com/u/1285986?v=4)](https://github.com/vkeranov "vkeranov (32 commits)")[![masterklavi](https://avatars.githubusercontent.com/u/17076439?v=4)](https://github.com/masterklavi "masterklavi (27 commits)")[![kylefarris](https://avatars.githubusercontent.com/u/601654?v=4)](https://github.com/kylefarris "kylefarris (26 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/madwings-insanedb/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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