squaremoonindustries/doctrine-fm-odata-v2-driver

Doctrine DBAL driver for FileMaker via OData API

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/squaremoonindustries/doctrine-fm-odata-v2-driver

1.0.1 2026-01-29 21:48 UTC

This package is auto-updated.

Last update: 2026-01-29 21:50:11 UTC


README

A Doctrine DBAL driver for FileMaker using the OData API.

Installation

Install via Composer:

composer require squaremoonindustries/doctrine-fm-odata-v2-driver

Configuration

Configure the connection in your Doctrine setup:

use Doctrine\DBAL\DriverManager;

$connectionParams = [
    'driverClass' => \SquareMoonIndustries\DoctrineFMODataDriver\ODataDriver::class,
    'host' => 'https://your-filemaker-server.com', // Base URL of FM Server
    'user' => 'your_username',
    'password' => 'your_password',
    'dbname' => 'NameOfYourDatabase',
];

$conn = DriverManager::getConnection($connectionParams);

Requirements

  • PHP >= 8.1
  • Doctrine DBAL 3.x
  • FileMaker Server with OData enabled

Features

  • Select, Insert, Update, Delete support via OData
  • Parameter binding support (prevent SQL injection)
  • Transaction support (simulated or via OData batch if available)

Testing

Run the test suite:

composer test