mstenta / farm_sync

Drupal 8 module with features for synchronizing records from farmOS into the local database.
1 stars 0 forks source link

Split the farmOS class out to a separate composer package #3

Open mstenta opened 5 years ago

mstenta commented 5 years ago

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.

mstenta commented 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.

mstenta commented 5 years ago

Here are a few things that will need to be replaced:

mstenta commented 5 years ago

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

mstenta commented 5 years ago

I created a repository for this: https://github.com/farmOS/farmOS.php

mstenta commented 5 years ago

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.