A man who admitted domestically abusing his wife over a two-year period has been ordered to carry out 200 hours of unpaid work.