PHP version, file API, client exception

Added PHP version requirement to package definition
Added throw exception when API body is empty
Added support for files API attachments