PHP code example of theprivateer / filemaker
1. Go to this page and download the library: Download theprivateer/filemaker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
theprivateer / filemaker example snippets
$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' => '[email protected]'
]);