RESTCWP & ODATACWP 1.1.0

Two focused PHP clients. One familiar FileMaker workflow.

Use restCWP for layout-based FileMaker Data API work or ODataCWP for table-native OData 4.0 queries, metadata, relationships, and primary-key operations. Both are standalone, MIT licensed, and designed for straightforward deployment.

RGC DATA

Both packages include:

  • A single-file PHP client
  • Guided configuration editor
  • Working demo and documentation
  • Optional MySQL/MariaDB or SQLite storage
  • Encrypted SQL-backed configuration and logs
CHOOSE THE API FOR THE JOB

The client libraries match. The FileMaker access models do not.

The better choice depends on the shape of the workflow, the privileges available, and whether layouts or tables are the natural boundary.

FILEMAKER DATA API

restCWP

Best for layout-based workflows, scripts, portals, related data, container fields, and solutions already designed around the Data API model.

  • Session token lifecycle
  • Layout and script operations
  • Find requests and portal data
  • File, session, or SQL token storage
ODATA 4.0

ODataCWP

Best for table-native access, explicit primary keys, filters, selects, sorting, metadata, relationships, and OData-aware integrations.

  • Direct Basic authentication
  • Tables and primary keys
  • OData filters and metadata
  • Relationship and container operations
A MATCHED DEVELOPER EXPERIENCE

Learn one package, move comfortably between both.

  • PHP 8.1+, cURL, JSON, and framework-free deployment
  • fromConfig() setup and consistent response helpers
  • File-based configuration and logging by default
  • Optional MySQL, MariaDB, or SQLite storage
  • Encrypted SQL-backed configuration and log context
  • Config Editor, smoke checks, log viewer, and complete demo
  • Documentation focused on installation, security, configuration, and troubleshooting
FAMILIAR STARTING POINTS

A small surface area for common FileMaker operations.

Both clients are designed to be readable, portable, and approachable for developers who want direct control.

restCWP

<?php\nsession_start();\nrequire_once __DIR__ . '/restCWP.php';\n\n$fm = restCWP::fromConfig();\n$result = $fm->getRecords(['_limit' => 10]);\n$response = $fm->getResponse($result);

ODataCWP

<?php\nrequire_once __DIR__ . '/ODataCWP.php';\n\n$fm = ODataCWP::fromConfig();\n$result = $fm->getRecords([\n  'select' => ['PrimaryKey', 'Name'],\n  'limit' => 10,\n]);
REQUIREMENTS & SECURITY

Built for deliberate production deployment.

Both packages require PHP 8.1 or later with cURL and JSON. SQL storage additionally requires PDO, OpenSSL, and the appropriate driver. FileMaker Server must expose the selected API, and OData tables require primary keys. Configuration files containing credentials should never be published; remove or restrict the hosted Config Editor after setup.

IMPLEMENTATION SUPPORT

Need more than a library?

RGC Data provides FileMaker architecture, integration development, security reviews, custom PHP work, deployment, and troubleshooting for both API paths.

LET’S BUILD SOMETHING USEFUL

Choose the client. Keep the architecture understandable.

Download either package free, or bring us the integration problem and we will help choose and implement the right API path.