tbcd / doctrine-hfsql-driver
Doctrine HFSQL Driver with ODBC
1.0.2
2022-09-21 13:04 UTC
Requires
- php: >=8.0.2
- ext-ctype: *
- ext-iconv: *
- ext-odbc: *
- doctrine/dbal: ^3.0
Requires (Dev)
- doctrine/doctrine-bundle: ^2.2
- phpunit/phpunit: ^9.5
- symfony/finder: ^6.0
This package is auto-updated.
Last update: 2025-02-24 14:17:50 UTC
README
Installation
1. Install the doctrine driver
composer require tbcd/doctrine-hfsql-driver
2. Download and install ODBC HFSQL driver
You can find the driver on PCSOFT platform. Here is the link : https://pcsoft.fr/st/telec/modules-communs-27/wx27_103n.htm
3. Create your connection
With the DriverManager
$connection = DriverManager::getConnection([
'host' => '127.0.0.1',
'user' => 'foo',
'password' => 'bar',
'port' => 4900,
'dbName' => 'DBHF_CF',
'driverClass' => \TBCD\Doctrine\HFSQLDriver\Driver::class
]);
Or with doctrine bundle
doctrine:
dbal:
default_connection: my_connection
connections:
my_connection:
host: '127.0.0.1'
user: 'foo'
password: 'bar'
dbname: 'DBHF_CF'
port: 4900
driver_class: TBCD\Doctrine\HFSQLDriver\Driver