Laracache
Laravel package providing InterSystems Cache as a data source using ODBC
Install / Use
/learn @jeandormehl/LaracacheREADME
InterSystems Caché provider for Laravel (ODBC)
<p> <img src="https://img.shields.io/packagist/l/jeandormehl/laracache" /> <img src="https://codecov.io/gh/jeandormehl/laracache/branch/master/graph/badge.svg"/> </a> <img src="https://img.shields.io/packagist/v/jeandormehl/laracache.svg" /> <img src="https://img.shields.io/packagist/dt/jeandormehl/laracache.svg" /> </p>Laracaché
Laracaché is an InterSystems Caché database driver package for Laravel. Laracaché is an extension of Illuminate/Database that uses the php-odbc extension to communicate with Caché. This package plays well with Eloquent.
Quick Installation
PHP >= 8.5 and Laravel >= 12
composer require jeandormehl/laracache
🚨 For older versions check the releases page.
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
Publish a configuration file by running the following Artisan command.
php artisan vendor:publish --tag=isc
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
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
The MIT License (MIT). Please see License File for more information.
Related Skills
node-connect
354.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
