Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any PHP framework implements ODATA protocol? [closed]

Is there any php framework that implements odata protocol, native or by extension?

I need to use breezejs on the client and I hope I don't have to implement all the server side work of odata by myself.

in case there is no such thing, is there any alternative to breezejs?

jaydata is not an alternative, because actually it also requires the server side to implement odata protocol, so they are too similar.

Rest services, (like restangular in angularjs) are also not an alternative (not to me at least). They provide only a portion of the services of breezejs or jaydata. E.g. they don't provide caching data, change tracking or complicated rich query options.

any ideas?

thank you

like image 993
Aladdin Mhemed Avatar asked Jun 10 '14 22:06

Aladdin Mhemed


1 Answers

Yes - there is an OData Producer Library for PHP which is available on github.

That might be both more and less than you need. A Breeze client basically needs three things from the server:

  1. Metadata describing the object model (which may be written by hand). OData's metadata may be inadequate because it sometimes omits foreign keys.
  2. An way to handle saving changes (I don't think the OData Producer for PHP implements this).
  3. A way to respond to the queries that your application needs.

You don't necessarily need the a full OData implementation. Look into breeze.server.php; it might be what you need.

EDIT - breeze.server.php actually uses the OData Producer Library.

like image 70
Steve Schmitt Avatar answered Oct 01 '22 14:10

Steve Schmitt