InventoryAPI by Erply is a powerful backend for web shops, and more.
Here you can download PHP code pack which helps you get started. It contains sample PHP InventoryAPI connector class and two samples.
Download API class and working example PHP code.