jeandormehl/laracache
Composer 安装命令:
composer require jeandormehl/laracache
包简介
InterSystems Caché provider for Laravel (ODBC)
关键字:
README 文档
README
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.
jeandormehl/laracache 适用场景与选型建议
jeandormehl/laracache 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.64k 次下载、GitHub Stars 达 14, 最近一次更新时间为 2018 年 11 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cache」 「pdo」 「odbc」 「laravel」 「intersystems」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jeandormehl/laracache 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jeandormehl/laracache 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jeandormehl/laracache 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
repository php library
laravel-ibmi is a simple DB2 & Toolkit for IBMi service provider for Laravel. It provides DB2 Connection by extending the Illuminate Database component of the laravel framework. Plus it also provides Toolkit for IBMi so that you can access IBMi resources with same credentials.
Dibi is Database Abstraction Library for PHP
Laravel 5 - Repositories to the database layer
Laravel database driver to connect to a sqlanywhere database instance
统计信息
- 总下载量: 3.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-14