PHPackages                             theprivateer/filemaker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. theprivateer/filemaker

ActiveLibrary[Database &amp; ORM](/categories/database)

theprivateer/filemaker
======================

Database query-builder for FileMaker databases

v0.3-stable(4y ago)08MITPHPPHP ^7.4|^8.0

Since Jul 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/theprivateer/filemaker)[ Packagist](https://packagist.org/packages/theprivateer/filemaker)[ Docs](https://github.com/theprivateer/filemaker)[ RSS](/packages/theprivateer-filemaker/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (4)Versions (3)Used By (0)

Elegant database query builder for connecting to FileMaker databases
====================================================================

[](#elegant-database-query-builder-for-connecting-to-filemaker-databases)

[![Latest Version on Packagist](https://camo.githubusercontent.com/69820a1c9a0a657aa8ec62bb2cad76913c131841e4057be938025db02d407873/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468657072697661746565722f66696c656d616b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/theprivateer/filemaker)[![Total Downloads](https://camo.githubusercontent.com/411a00aba4994cdce2d2a92d776857bbe2bb964d7673e49db2fbbe40fa38949b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468657072697661746565722f66696c656d616b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/theprivateer/filemaker)

This is an elegant object-orientated approach to dealing with FileMaker databases from PHP applications, very heavily inspired by the [database query builder](https://laravel.com/docs/8.x/queries) found in Laravel.

It also allows you to effortlessly switch between the traditional XML-based FMPHP connection method and the newer FMREST Data API.

The list of supported queries is still a bit limited, but does allow for some fairly complex requests under the hood. Over time I will be adding more query types to the package.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require theprivateer/filemaker
```

Usage
-----

[](#usage)

```
$config = [
    'driver'	=> 'fmphp',
    'host'      => '127.0.0.1',
    'file'      => 'DatabaseName',
    'user'      => 'admin',
    'password'  => 'someP@ssword',
];

$fm = new Privateer\FileMaker\FileMaker($config);

$user = $fm->layout('users')->where('username', 'privateer')->first();

$newUser = $fm->layout('users')->insert([
    'name'      => 'John Doe',
    'username'  => 'johndoe',
    'email'     => 'john@example.com'
]);
```

### Testing

[](#testing)

I'm working on test coverage - watch this space!

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Phil Stephens](https://github.com/theprivateer)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com) by [Beyond Code](http://beyondco.de/).

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

1824d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/884249d2bb312969d25674c0f5b296ff7fc03776ea2dafabedc4d0b04c711acb?d=identicon)[theprivateer](/maintainers/theprivateer)

---

Tags

FileMakertheprivateer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/theprivateer-filemaker/health.svg)

```
[![Health](https://phpackages.com/badges/theprivateer-filemaker/health.svg)](https://phpackages.com/packages/theprivateer-filemaker)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
