Open mstenta opened 5 years ago
There are a few Drupal-specific method calls used in the class... but they wouldn't be hard to replace with more generic options.
Here are a few things that will need to be replaced:
Also worth considering: what should the class be called? Is farmOS
too general? Will that cause confusion? See https://github.com/farmOS/farmOS-native/issues/73#issuecomment-450652755
I created a repository for this: https://github.com/farmOS/farmOS.php
I am also working on a Python variant in https://github.com/farmOS/farmOS.py which will be a clone of this. @jgaehring is working in parallel on a JavaScript variant, which is farther along: https://github.com/farmOS/farmOS.js. We hope to bring all three of them into a general alignment in the near future, once farmOS.php and farmOS.py are synced.
This module includes a farmOS class, which provides methods for connecting to and pulling records from a farmOS site. I've tried to keep this class relatively general so that it could be separated out into a separate package for use in other (non-Drupal) PHP projects.