Connect to AX 4 by PHP script from external server


I am investigating the process of connecting php ton a AX 4 server.

Is this even possible, and if so, how is it possible?

I would like to get products and order from AX into my PHP webapplication and be able to store (new) products and orders from the webapplication into AX 4.

Thanks in advance!