A man who abandoned a dozen puppies and four adult dogs in filth has been ordered to complete 200 hours of community service.