Posts tagged PHP

PHP Wrapper for Capsule CRM

Currently we are creating a PHP wrapper for capsule CRM. Having used the currently available PHP wrapper on a project , although well written didnt deliver the functionality we required.

I wanted the PHP wrapper to return inserted id when creating a record ,whether it be a customer or company. Instead of doing another call to retrieve the value, after the insert. I could see problems with this method, after all the API does return a result when using CURL from the command line, so why not get this value into a variable there and then?

The second issue is the fact you need HTTPRequest2 PEAR mod, all well and good if you have the mod installed, but if you dont have this or have the ability it install it then the wrapper will not function.

We have achieved the same results using CURL and SimpleXML , which are almost universally available.