I'm in search of a package or class that is similar to an ORM but doesn't use any kind of database as storage backend but rather a RESTful API.
Basically the package/class should behave similar to Fuel's ORM such that I can do something like `Model\User::query()->where('username', 'LIKE', 'admin')->get()` and this will trigger a cURL request to the defined API with proper formatted arguments. The reason I am looking for this is to be able to write an API which can be used by both my webpage as well as third-party services or e.g., a native mobile app. With the current implementation (maybe just a dead lock in my brain) I cannot do this as my Fuel-app would be using the same models as the API is using which doubles the code to maintain given the API is a different app (separate code-base).
Has anybody ever seen anything like that out in the open? Or do I just go with having the same model code in two places?