How to integrate custom php file for specific module in SugarCRM cloud?

eg : To add logic to a field in Case module using php