PHPackages                             tfhinc/ci-warehouse - 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. tfhinc/ci-warehouse

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

tfhinc/ci-warehouse
===================

Get the fork lift - Manage data repositories with cache and database layers in the Codeigniter framework.

v1.0.2-alpha(7y ago)30MITPHPPHP &gt;=7.1.0

Since Dec 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/TFHInc/ci-warehouse)[ Packagist](https://packagist.org/packages/tfhinc/ci-warehouse)[ Docs](https://github.com/TFHInc/ci-warehouse)[ RSS](/packages/tfhinc-ci-warehouse/feed)WikiDiscussions master Synced today

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

Warehouse
=========

[](#warehouse)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0d6c279ab2f4fc58a61c45279b652075ad32e6e669e61d881c40b56df783bf14/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746668696e632f63692d77617265686f7573652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tfhinc/ci-warehouse)[![PHP Version](https://camo.githubusercontent.com/db674a1be408a7a0a23d0417ff8fed60c5eafd6be560baebbe1e730ed27b78d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746668696e632f63692d77617265686f7573652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tfhinc/ci-warehouse)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/7d0c118e78efe65347252a7b5d94487976e7a82e794782beba27ba08fa9f989e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746668696e632f63692d77617265686f7573652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tfhinc/ci-warehouse)

Get the fork lift - Manage data repositories with cache and database layers in the [Codeigniter](https://codeigniter.com/) framework.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1.0
- CodeIgnitor 3.x

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

[](#installation)

Install the library via composer:

```
composer require tfhinc/ci-warehouse
```

Run the post install command to publish the helper and class files to the appropriate CI directories:

```
composer --working-dir=vendor/tfhinc/ci-warehouse/ run-script publish-files
```

Loading the Library
-------------------

[](#loading-the-library)

There are a few available options for loading the Warehouse library:

### Using the `warehouse()` helper function

[](#using-the-warehouse-helper-function)

The Warehouse helper function will resolve the warehouse class via the CI instance. It will either load the class or return the existing class instance:

```
$this->load->helper('warehouse');
```

### Using the Warehouse Class

[](#using-the-warehouse-class)

The Warehouse class can be instantiated when you require it:

```
$redis = new TFHInc/Warehouse/Warehouse();
```

### Using the Warehouse CI Library

[](#using-the-warehouse-ci-library)

The Warehouse class can be loaded like any other CI library:

```
$this->load->library('Warehouse');
```

Usage
-----

[](#usage)

```
// Use the helper method

$this->CI->load->helper('warehouse');

$books = warehouse()->load('Books');

// Use the Warehouse class

$warehouse = new TFHInc\Warehouse\Warehouse();

$books = $warehouse->load('Books');

// Use the Warehouse CI Library

$this->load->library('Warehouse');

$books = $warehouse->load('Books');
```

Contributing
------------

[](#contributing)

Feel free to create a GitHub issue or send a pull request with any bug fixes. Please see the GutHub issue tracker for isses that require help.

Acknowledgements
----------------

[](#acknowledgements)

- [Colin Rafuse](https://github.com/crafuse)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

2716d ago

### Community

Maintainers

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

---

Top Contributors

[![crafuse](https://avatars.githubusercontent.com/u/10606086?v=4)](https://github.com/crafuse "crafuse (5 commits)")

---

Tags

cachecodeigniter-librarycodeigniter3databaserepositoriesrepositorydatabasecodeignitercacherepositoryrepositoriesci-warehouse

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tfhinc-ci-warehouse/health.svg)

```
[![Health](https://phpackages.com/badges/tfhinc-ci-warehouse/health.svg)](https://phpackages.com/packages/tfhinc-ci-warehouse)
```

###  Alternatives

[czim/laravel-repository

Repository for Laravel (inspired by and indebted to Bosnadev/Repositories)

54110.0k4](/packages/czim-laravel-repository)[littlebug/laravel-repository

The repository mode for laravel!

364.1k](/packages/littlebug-laravel-repository)

PHPackages © 2026

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