tbcd/doctrine-hfsql-driver

Doctrine HFSQL Driver with ODBC

1.0.2 2022-09-21 13:04 UTC

This package is auto-updated.

Last update: 2024-04-24 12:22:02 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