This is an interface layer I made for our ticketing software in 2012.  It was a complete rewrite of an earlier version.  I was able to reduce the lines of code and files drastically.  It makes heavy use of curl and was phased out in 2013, which I agreed with.