


Important note: since we use a cookie to keep track of your token, your first function, or a specific call to the login function should be called before any visible content on the page. If you set it here, it will be used as a default for each function, or you can include the layout when calling the function.įmREST will automatically log in for you as necessary, as each function is called. Note: layout is now optional when setting up your connection. Include the file in your php file by adding the line:

Install the class file by putting the file “fmREST.php” at the same location as your custom PHP page, or anywhere in your include path. This documentation refers to the new version. Please note, a new version of the fmREST class file was uploaded on to support FileMaker 18’s new features. (Update: this is now linked to our GitHub repository for better community participation.) You can download the fmREST class file here.

Makes every REST call available as a PHP function.If you’d like to add something to it, please let us know. We’ll also be updating it with new features. The goal of the class file was to help PHP developers start using the new REST engine as quickly and easily as possible. We created this class file to make it easier to manage dynamic REST sessions for soSIMPLE and our custom development. Simplifies & manages PHP connections to FileMaker 17’s REST-based Data API. We know it’s a pain, because we cut our teeth rolling REST functionality into soSIMPLE Calendar. The bottom line is that to use REST as part of your PHP solution, you would usually need to write a series of cURL functions and you would have to manually manage connecting & disconnecting from your server, and saving your tokens. There’s more about that how this impacts PHP developers here. FileMaker Server 17 and 18 now offers REST access to your FileMaker databases.
