matatirosoln / doctrine-filemaker-driver-bundle
Symfony bundle to implement one of the FileMaker Doctrine drivers
Package info
github.com/matatirosolutions/doctrine-filemaker-driver-bundle
pkg:composer/matatirosoln/doctrine-filemaker-driver-bundle
Requires
- php: >=7.2.0
- ext-dom: *
- ext-json: *
- ext-simplexml: *
- doctrine/dbal: ^3.0 || ^4.0
- doctrine/orm: ^2.0 || ^3.0
- symfony/console: ^5.4|^6.0|^7.0
- symfony/dependency-injection: ^5.4|^6.0|^7.0
- symfony/framework-bundle: ^5.4|^6.0|^7.0
- symfony/http-client: ^5.4|^6.0|^7.0
- symfony/http-kernel: ^5.4|^6.0|^7.0
- twig/twig: ^1.38||^2.7||^3.0
Requires (Dev)
None
Suggests
- matatirosoln/doctrine-filemaker-driver: Use FileMaker through CWP as your backend database
- matatirosoln/doctrine-fm-data-api-driver: Use FileMaker via the v17+ Data API as your backend database (1.0 and later for DBAL 4 / ORM 3)
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 1.11.0
- 1.10.11
- 1.10.10
- 1.10.9
- 1.10.8
- 1.10.7
- 1.10.6
- 1.10.5
- 1.10.4
- 1.10.3
- 1.10.2
- 1.10.1
- 1.9.6
- 1.9.5
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8
- 1.7.2
- 1.7.1
- 1.7
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6
- 1.5.0
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- 0.10.7
- 0.7.6
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1
- dev-dev-1.9.6
- dev-dev-1.9.5
- dev-dev-1.9.4
- dev-dev-1.9.3
This package is auto-updated.
Last update: 2026-11-25 18:27:20 UTC
README
A Symfony bundle to implement one of the FileMaker Doctrine drivers to allow the use of either FileMaker CWP API or the FileMaker Data API in a Symfony application.
Installation
Install through composer. If you're working in SF from 5.4 onwards use.
composer require matatirosoln/doctrine-filemaker-driver-bundle
If you need to support SF prior to 5.4 you need the (still maintained) 1.7 version.
composer require matatirosoln/doctrine-filemaker-driver-bundle "^1.7"
Important Note: You will also need to install the appropriate driver now that we have also released a driver for the Data API (this is a breaking change in v1.0. Originally the CWP driver was automatically installed by this bundle, however that doesn't now happen because you may not want it ;-).
If you wish to interact with FileMaker using the CWP PHP API
composer require matatirosoln/doctrine-filemaker-driver
Alternatively to use the Data API
composer require matatirosoln/doctrine-fm-data-api-driver
Configuration
For symfony less than v4.0 add the bundle to AppKernal.php
new MSDev\DoctrineFileMakerDriverBundle\DoctrineFileMakerDriverBundle()
For Symfony v4+ add the bundle to bundles.php
MSDev\DoctrineFileMakerDriverBundle\DoctrineFileMakerDriverBundle::class => ['all' => true],
Configure Doctrine to use the FileMaker driver. In your Doctrine configuration comment out
driver: xxxx
and replace it with
driver_class: MSDev\DoctrineFileMakerDriver\FMDriver or driver_class: MSDev\DoctrineFMDataAPIDriver\Driver\FMDriver # version 1.0 or later of the Data API driver driver_class: MSDev\DoctrineFMDataAPIDriver\FMDriver # before 1.0
Doctrine versions
Version 1.11 works with DBAL 3 / ORM 2 and with DBAL 4 / ORM 3. DBAL 4 and ORM 3 need version 1.0 or later of the Data API driver, and the CWP driver isn't available for them.
The bundle registers the fmdate, fmdatetime, fmtime, fmhtml, fmfloat, fmint and array Doctrine types for you. With DBAL 4
these are the types which ship with the Data API driver (the ones in this bundle were written for the DBAL 3 type API); with DBAL 3 they
are the ones in this bundle. Either way you don't need to register them yourself, and entity mappings don't change.
With version 1.0 of the Data API driver the bundle also registers its GeneratedKeyListener. That makes #[ORM\GeneratedValue] work for a
key which FileMaker assigns (a serial number, say) as it did with 0.x: the key is read back from the new record. Without it Doctrine would
use FileMaker's record id as the key.
If you wish to make use of the value lists functionality add the following to 'config.yaml' (or your chosen config file)
doctrine_file_maker_driver: valuelist_layout: 'ValueLists'
See the notes on 'conventions' with regard to creating entities for use with FileMaker in the Doctrine FileMaker driver readme.
Services
There are a number of useful services etc which this bundle adds to your project.
- Access to scripts within your FileMaker solution
- Interaction with containers
- Using valuelists through a twig extension.
- Storing translations in your FileMaker database.