PHP version, file API, client exception

Hello guys!

I'm adding this pull request to suggest a couple of improvements to the SDK. I hope you find them usefull.

Regards!

Added PHP version requirement to package definition
Added throw exception when API body is empty
Added support for files API attachments