Sage 50 cloud and PHP web app integration

Hi,

Is it possible to integrate a PHP web app with Sage 50 Cloud?

I would like to set up a system where when a sales invoice/credit note is created on the web application, it is also created on the Sage 50 Cloud account.

I am new to this any help would be appreciated.