Download the PHP package thyyppa/laravel-filemaker-api without Composer
On this page you can find all versions of the php package thyyppa/laravel-filemaker-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-filemaker-api
Laravel FluentFM
FluentFM is a PHP package that connects to FileMaker Server's Data API using a fluent query builder style interface.
Requirements
- PHP 7.2+
- FileMaker Server 17
- Laravel 5+
Installation
Using Composer
Use the command
or include in your composer.json
file
Prepare FileMaker
Important! All tables and layouts must contain an id
field.
If you wish to use soft deletes your table and layout must contain the field deleted_at
The following fields are also recommended:
created_at
(for sorting by latest)updated_at
(for sorting by last update)
All fields that you wish to access must be available in the layout that you provide while performing FileMaker operations through the api.
Ideally these will be hidden layouts that contain all fields raw, mirroring the table, but depending on your layout structure you may be able to use existing human-facing layouts.
Ensure that fmrest
is enabled on your privilege set, which you can define in
File > Manage > Security > [highlight user] > Privilege Set [Edit]
Also be sure that the Data API is enabled on the server.
If your server is installed locally this link should take you there:
http://localhost:16001/admin-console/app/connectors/fmdapi
Otherwise replace localhost
with the server address.
Register package
This package features auto-discovery, so registering the provider and facade should not be necessary, but if for any reason auto-discovery does not work for you, you can register the package manually as shown below.
Register the service provider in config/app.php
(optional)
Register the facade alias in config/app.php
(optional)
Config
Publish the config files by running (optional)
Set Environment Variables
In your .env
file, add the following items
Usage
Getting records from layout
Performing a find operation
Creating a record
Updating a record
Deleting records
If you wish to use soft deletes your table and layout must contain the field deleted_at
Uploading and downloading files to a record's container
Running FileMaker scripts
Chainable commands
Chainable modifiers
End of chain methods
Misc commands
License
MIT License
Disclaimer
This project is an independent entity and has not been authorized, sponsored, or otherwise affiliated with FileMaker, Inc. FileMaker is a trademark of FileMaker, Inc., registered in the U.S. and other countries.