{"id":15023467,"url":"https://github.com/kulikov-dev/filemaker","last_synced_at":"2025-04-09T19:52:58.462Z","repository":{"id":74412034,"uuid":"560595976","full_name":"kulikov-dev/filemaker","owner":"kulikov-dev","description":"Connector to FileMaker for PHP 5.5\u003e=","archived":false,"fork":false,"pushed_at":"2022-11-04T16:44:04.000Z","size":6,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T21:51:52.683Z","etag":null,"topics":["connector","e-commerce","filemaker","filemaker-api","filemaker-data-api","php","php55","rest"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kulikov-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-01T20:57:38.000Z","updated_at":"2025-01-01T07:17:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e7cf568-c9d5-496c-95dd-ab3f64d00d03","html_url":"https://github.com/kulikov-dev/filemaker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulikov-dev%2Ffilemaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulikov-dev%2Ffilemaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulikov-dev%2Ffilemaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulikov-dev%2Ffilemaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kulikov-dev","download_url":"https://codeload.github.com/kulikov-dev/filemaker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103915,"owners_count":21048244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["connector","e-commerce","filemaker","filemaker-api","filemaker-data-api","php","php55","rest"],"created_at":"2024-09-24T19:59:06.035Z","updated_at":"2025-04-09T19:52:58.450Z","avatar_url":"https://github.com/kulikov-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Connector to the relational database [FileMaker](https://help.claris.com/en/data-api-guide/content/index.html) for PHP 5.5 \u003e=\n\nThe connector allows to communicate with the FileMaker tables through the REST API, realizing operations of obtaining, finding and updating data. Support scripts.\n\nBefore work you need to initialize a connector with your credentials:\n``` php\n    private static function initialize_fileMaker()\n    {\n        self::$file_maker_connector = new filemaker_connector();\n        self::$file_maker_connector-\u003eset_credentials('login', 'pass');\n        self::$file_maker_connector-\u003eset_entry_point('https://a111111.fmphost.com/fmi/data/v1/databases/test');\n        self::$file_maker_connector-\u003eopen_connection();\n\n        if (self::$file_maker_connector == null || !self::$file_maker_connector-\u003eis_opened()) {\n            die('Initialize FileMakerConnector before work with Test database.');\n        }\n    }\n```\n\nAfter that the connector is ready to work. Below are samples of obtaining data with a FileMaker script:\n``` php\n $script = '\u0026script=FindActiveForModifiedOnly\u0026script.param=' . date(\"m-d-Y H:i:s\", time());\n $indexer = self::$file_maker_connector-\u003eget_table_content('Inventory', $script);\n```\n\nAnd updating a record in the FileMaker database:\n``` php\n  $new_record = [];\n  $new_record[\"pk\"] = strval($employee_info[\"WOVEN_ID\"]);\n\n  $new_record[\"first\"] = $employee_info[\"FNAME\"];\n  $new_record[\"last\"] = $employee_info[\"LNAME\"];\n  $query_info = [\n            \"query\" =\u003e [[\n                \"Employee\" =\u003e '=' . $new_record[\"pk\"]\n            ]],\n            \"limit\" =\u003e \"1\",\n            \"script\" =\u003e \"Employee DataAPIUpdate\",\n            \"script.param\" =\u003e json_encode($new_record)\n        ];\n\n  self::$file_maker_connector-\u003eupdate_record(\"Employees\", $query_info);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulikov-dev%2Ffilemaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkulikov-dev%2Ffilemaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulikov-dev%2Ffilemaker/lists"}