PHPackages                             jeandormehl/laracache - 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. [Caching](/categories/caching)
4. /
5. jeandormehl/laracache

ActiveLibrary[Caching](/categories/caching)

jeandormehl/laracache
=====================

InterSystems Caché provider for Laravel (ODBC)

5.0.0(3mo ago)143.6k9[5 PRs](https://github.com/jeandormehl/laracache/pulls)MITPHPPHP ^8.5CI passing

Since Nov 30Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/jeandormehl/laracache)[ Packagist](https://packagist.org/packages/jeandormehl/laracache)[ Docs](https://github.com/jeandormehl/laracache)[ RSS](/packages/jeandormehl-laracache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (25)Used By (0)

InterSystems Caché provider for Laravel (ODBC)
==============================================

[](#intersystems-caché-provider-for-laravel-odbc)

 [![](https://camo.githubusercontent.com/2ef9f926fd5b8fb8fa5088a23d81880aebdfc77096321635f698b1605dff4914/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a65616e646f726d65686c2f6c6172616361636865)](https://camo.githubusercontent.com/2ef9f926fd5b8fb8fa5088a23d81880aebdfc77096321635f698b1605dff4914/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a65616e646f726d65686c2f6c6172616361636865) [![](https://camo.githubusercontent.com/f0cfcf5fab22ffe095085b546e2ec8a351ae0f10571d6c60a96160b5a0c3ff35/68747470733a2f2f636f6465636f762e696f2f67682f6a65616e646f726d65686c2f6c61726163616368652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://camo.githubusercontent.com/f0cfcf5fab22ffe095085b546e2ec8a351ae0f10571d6c60a96160b5a0c3ff35/68747470733a2f2f636f6465636f762e696f2f67682f6a65616e646f726d65686c2f6c61726163616368652f6272616e63682f6d61737465722f67726170682f62616467652e737667) [![](https://camo.githubusercontent.com/c47a8eaa3c2c15fea3ed39e20beae91eba3075dddd76ea6a73c1395c4a303977/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65616e646f726d65686c2f6c61726163616368652e737667)](https://camo.githubusercontent.com/c47a8eaa3c2c15fea3ed39e20beae91eba3075dddd76ea6a73c1395c4a303977/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65616e646f726d65686c2f6c61726163616368652e737667) [![](https://camo.githubusercontent.com/3f221c466b7e843bd9a152be37ac09927ed5f94334a96dbe0e56cebedd9c08f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a65616e646f726d65686c2f6c61726163616368652e737667)](https://camo.githubusercontent.com/3f221c466b7e843bd9a152be37ac09927ed5f94334a96dbe0e56cebedd9c08f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a65616e646f726d65686c2f6c61726163616368652e737667)

Laracaché
---------

[](#laracaché)

Laracaché is an InterSystems Caché database driver package for [Laravel](http://laravel.com/). Laracaché is an extension of [Illuminate/Database](https://github.com/illuminate/database) that uses the [php-odbc](http://php.net/odbc) extension to communicate with Caché. This package plays well with [Eloquent](https://laravel.com/docs/master/eloquent).

Quick Installation
------------------

[](#quick-installation)

PHP &gt;= 8.5 and Laravel &gt;= 12

```
composer require jeandormehl/laracache
```

🚨 For older versions check the releases page.

Environment variables
---------------------

[](#environment-variables)

Modify your` .env` file to look similar to this.

```
DB_CONNECTION=isc
DB_WIN_DSN=
DB_UNIX_DRIVER=/usr/local/cache/2018/bin/libcacheodbcur64.so
DB_HOST=127.0.0.1
DB_PORT=1972
DB_DATABASE=LARAVEL
DB_USERNAME=_SYSTEM
DB_PASSWORD=SYS

```

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

[](#configuration)

Publish a configuration file by running the following Artisan command.

```
php artisan vendor:publish --tag=isc
```

Setup
-----

[](#setup)

Create this file `/etc/odbc.ini`

```
[ODBC Data Sources]
cache=cache

[cache]
Driver                = /usr/local/cache/2018/bin/libcacheodbcur64.so
Description           = InterSystems Cache ODBC Connection
Protocol              = TCP
Query Timeout         = 1
Static Cursors        = 0
Authentication Method = 0

```

Install these extra packages and extract the Caché driver file.

ODBC-2018.1.7.721.0-lnxubuntux64.tar.gz

```
# Extra packages
apt update && apt install -y php8.4-odbc unixodbc libodbccr2 odbcinst

# Create this folder
mkdir -p /usr/local/cache/2018

# Extract the driver to the folder above
tar xvzf ODBC-2018.1.7.721.0-lnxubuntux64.tar.gz -C /usr/local/cache/2018

# Install Caché Driver
cd /usr/local/cache/2018 && ./ODBCinstall

odbcinst -i -s -f /etc/odbc.ini

# Binds
ln -s /usr/lib/x86_64-linux-gnu/libodbccr.so.2.0.0 /etc/libodbccr.so
```

Contribute
==========

[](#contribute)

You can run this project on VSCODE with Remote Container. Make sure you will use internal VSCODE terminal (inside running container).

```
composer install
composer test
composer test:coverage
```

License
-------

[](#license)

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

###  Health Score

59

—

FairBetter than 99% of packages

Maintenance83

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~345 days

Total

13

Last Release

113d ago

Major Versions

v1.0.6 → v2.0.02021-12-02

v2.2.1 → 3.0.02025-01-20

3.0.0 → v4.02025-07-17

v4.0 → 5.0.02026-01-19

PHP version history (7 changes)1.0PHP ^7.1.3

v1.0.2PHP ^7.2|^7.3

v1.0.4PHP ^7.2|^7.3|^7.4

v1.0.6PHP ^7.2|^7.3|^7.4|^8.0

v2.0.0PHP ^8.0|^8.1

3.0.0PHP ^8.2|^8.3|^8.4

5.0.0PHP ^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/98e6cccdb9bd58dbb643fccfece609d32ca6f750b61c7a56de38ec1291da59ac?d=identicon)[jdormehl](/maintainers/jdormehl)

---

Top Contributors

[![robsontenorio](https://avatars.githubusercontent.com/u/118955?v=4)](https://github.com/robsontenorio "robsontenorio (15 commits)")[![jeandormehl](https://avatars.githubusercontent.com/u/6071825?v=4)](https://github.com/jeandormehl "jeandormehl (14 commits)")[![jdormehl-qlink](https://avatars.githubusercontent.com/u/223427293?v=4)](https://github.com/jdormehl-qlink "jdormehl-qlink (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![liamjcooper](https://avatars.githubusercontent.com/u/17281410?v=4)](https://github.com/liamjcooper "liamjcooper (2 commits)")[![MWilm](https://avatars.githubusercontent.com/u/56134786?v=4)](https://github.com/MWilm "MWilm (1 commits)")[![dizlexic](https://avatars.githubusercontent.com/u/3574726?v=4)](https://github.com/dizlexic "dizlexic (1 commits)")

---

Tags

cacheintersystems-cacheintersystems-odbc-driverslaravelodbc-driverphp-odbcunixodbclaravelpdocacheodbcintersystems

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jeandormehl-laracache/health.svg)

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

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[dragon-code/laravel-cache

An improved interface for working with cache

6844.8k10](/packages/dragon-code-laravel-cache)[nexxai/laravel-cfcache

A handful of Cloudflare cache helpers for Laravel

1317.7k](/packages/nexxai-laravel-cfcache)[omaralalwi/lexi-translate

Laravel translation package with morph relationships and caching.

754.3k2](/packages/omaralalwi-lexi-translate)[suitmedia/laravel-cacheable

Decorate your repositories and make them cacheable

1237.7k](/packages/suitmedia-laravel-cacheable)

PHPackages © 2026

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