I have a smallish fenced in yard in which I have grass and lots of pretty lillies. I surround my flower beds with a readily available metal fencing which is decorative 2 foot high border type fencing. When it's warm I let the hens out to graze after work and I hang out in the yard in order to keep them from scratching up grass and messing up the lawn and eating the lillies. The fencing is enough to keep them out of the flower beds as they can't jump on it and don't seem to want to jump over it.
I begin this as soon as my perennials shoot up from the ground and continue till fall. Once the plants are dying and fall well underway, the girls can roam all day without my presence. But during the growing season, they spend their time in their run until I let them out. My flowers are beautiful in the spring and summer. I grow lillies (not Tiger Lilly) as they aren't toxic, along with other non toxic flowers.