We have a new visitor to our Shack-In-The-Marshes. He stops by most evenings. He's a delightful old gentleman. His vision isn't much, and he's a bit curmudgeonly, but I enjoy his company.
He is known as Mr Brock (Brocc is the Old English word for badger, from the Celtic Brokko meaning grey), and he pops in most evening on his travels to snaffle up any spilled chicken feed. Badgers are unlikely to kill chickens (on very rare occasions they may go for a sick bird, but they are carrion eaters and are more likely to be found eating a bird that has died of natural causes than one they have killed themselves) and the chickens don't seem too troubled by his visits (though they are usually tucked up in bed when he comes calling).
If you have a badger that wants to come into your garden, there isn't much you can do about it. They are very strong and can move surprisingly fast. I'm of the opinion that you can waste a lot of time and energy badger-proofing your garden, or you can provide them with a better choice of food and reduce any risk of damage to your veggies. Badgers love peanuts (unsalted), apples & pears, but also appreciate dog or cat food and a drink of water.
So we have a sack of dry dog food & some unsalted nuts, and many evenings of watching Mr Brock snuffle around.