• Discussion
  • Examples of well written API wrappers for PHP?

So long story short I'm writing an API wrapper(mostly for practice). There are a ton of API wrappers out there, but I gotta be honest here, I'm not very good at PHP so I don't know which ones are good and which ones are not so good.

I'm mostly interested in the structure, high level concepts. I'm trying to put SOLID into practice and I figured this is a good start.

Let me give you a concrete example. Say I have $server which has 3 types of available API(SOAP, JSON-RPC, and SOAP) each has endpoints X, Y and Z.

Would it make sense to have a wrapper for each one? Or a single swapable wrapper?(Think they way doctrine can swap between MySQL to Postgre). So that you can use either of them without too much hassle.

Anyway, without further rambling on, can anybody point me to a good example of a API wrapper?

    Well, at least this one is only a 2-day old reddit post.

      Write a Reply...