Download the PHP package jeandormehl/laracache without Composer
On this page you can find all versions of the php package jeandormehl/laracache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeandormehl/laracache
More information about jeandormehl/laracache
Files in jeandormehl/laracache
Package laracache
Short Description InterSystems Caché provider for Laravel (ODBC)
License MIT
Homepage https://github.com/jeandormehl/laracache
Informations about the package laracache
InterSystems Caché provider for Laravel (ODBC)
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 and Laravel >= 8
Environment variables
Modify your .env file to look similar to this. Windows users only need set DB_CONNECTION
and DB_WIN_DSN
variables. Unix users should set all other variables as seen below:
Configuration
Publish a configuration file by running the following Artisan command.
This will copy the configuration file to config/isc.php
.
ODBC Drivers for Caché
You will need to ensure that you have the relevant ODBC drivers installed. For Linux distributions I recommended using the unixODBC driver, in specific, libcacheodbcur6435.so
for 64-bit. If you have any trouble try to switch to libcacheodbcur64.so
.
unixODBC
Download, untar and build the unixODBC package. This example uses version 2.3.7.
php-odbc
Ensure php-odbc extension is installed. This example uses Apache & PHP 7.2.
InterSystems ODBC Drivers
Download, untar and install. This example uses the 2018.1.0.184.0 build for Ubuntu 64bit. Find available drivers at this link: InterSystems ODBC Drivers
/etc/odbc.ini
After completeing the above steps, you should have a file located in /etc called odbc.ini. Edit this file using vi or nano. It should look something like this:
Register and create symlink to the cursor.
ODBC Installation and Validation on UNIX® Systems
For Windows, setup the ODBC data source in Administrative Tools and set the win_dns
setting in the config file, isc.php
to the name of your ODBC Data Source.
Contribute
You can run this project on VSCODE with Remote Container. Make sure you will use internal VSCODE terminal (inside running container).
License
The MIT License (MIT). Please see License File for more information.
All versions of laracache with dependencies
illuminate/database Version ^8.0|^9.0
illuminate/support Version ^8.0|^9.0