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
=================

InsaneDB is a Database Toolkit for PHP forked from CodeIgniter 3

1.4.0(2mo ago)03121MITPHPPHP &gt;=8.0CI passing

Since Nov 12Pushed 2mo 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 today

READMEChangelog (10)Dependencies (4)Versions (20)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/pocketarc/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 8.0 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

52

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity77

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 ~254 days

Recently: every ~592 days

Total

16

Last Release

67d ago

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

1.0rc10PHP &gt;=5.6

v1.1.0PHP &gt;=7.1

1.4.0PHP &gt;=8.0

### 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 (315 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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

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

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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