I would advise keeping the bins closed and shooing the boars with noise, so they will be afraid of people.
Wild boars in several towns of Poland and Germany learned to feed in rubbish bins and ignore people. Usually, it became their regular habit. After a short time "oww, how cute" it ended badly for the boars. They were shot, or in more conscious towns, caught and relocated to the forests far away.
Any chance of translocating "surplus" boars into other British forests?