Data processing forms built with FileMaker, Excel, Sheets, or Acrobat can use PHP to enable asynchronous interactions with SQL databases or REST APIs.
We use these applications to create forms that use calculations to format and native functions to send user-supplied query parameters to PHP scripts that look-up information, or execute Create-Read-Update-Delete transactions, or call stored procedures, or interact with reference or messaging APIs, instantly returning filtered results to specified form fields as single values or JSON, XML, FDF, or HTML arrays, automatically updating form calculations in the process.
On-demand 2-way data exchanges, triggered as users enter, update, select, or click form elements, returning SQL or REST API interaction results in real-time.
Each type of form provides additional features, capabilities, and advantages. Any type can interact with any mixture of databases or APIs in any sequence.
Claris FileMaker database documents can perform calculations and dynamically execute webhooks that use PHP, PDO, and cURL to interact with SQL databases and REST APIs. FileMaker provides a process automation toolkit designed specifically for building bespoke programmable controls and multi-user interfaces that can be shared securely using Apple or Windows desktop application, WebDirect mobile forms, or the FileMaker Data API.
Microsoft Excel and Google Sheets spreadsheets can also use calculations and native functions to execute queries on SQL databases or REST APIs, efficiently fetching results without ETL processing. PHP scripts can filter real-time scalar or aggregate query results back to active spreadsheet cells as either single values or XML-formatted results (for Excel dynamic arrays) or HTML-formatted results (for Sheets dynamic arrays).
Adobe Acrobat PDF forms can be used as programmable data interaction runtimes. Many document types can be converted to PDF and extended with PHP to send query parameters to databases or APIs and return filtered results to designated form fields in real-time. More securable than HTML forms, Acrobat PDF forms are not susceptible to XSS, CSRF, or session attacks, and can be password protected, encrypted, flattened, or digitally signed.
PHP is a popular general purpose server scripting language, currently used on approximately 75% of websites globally. PHP Data Objects and cURL code libraries provide comparatively simple, securable, injection-resistant methods for efficiently interacting with SQL databases or REST APIs. PHP is open-source technology, meaning no licensing costs, transaction fees, or subscriptions required to own and use reliable industrial strength code.
The PHP Data Objects (PDO) extension defines methods for sanely interacting with MySQL, PostgreSQL, Oracle, or SQL Server databases. PDO provides a data-access abstraction layer that can map typed query parameters to prepared statement inputs in order to execute queries. Code differences between database types are minimized as PDO database drivers encapsulate database-specific features as extension functions.
PHP incorporates libcurl, a code library that can be used to simplify connections and interactions with REST APIs. Perfect.
In addition to REST APIs, libcurl provides scriptable methods for communications tasks involving http, https, ftp, gopher, telnet, dict, file, or ldap protocols, HTTPS certificates, HTTP POST, HTTP PUT, FTP file uploads, HTTP form-based file uploads, proxies, cookies, and user-password resource or directory authentication.