My daughter was just over three when we stopped, having cut down gradually over a year or so. She stopped having daytime feeds when I went back to work (10 months - didn't want a bottle) but I fed her when I got home, fed her to sleep and during the night.
By the time she was 18 months I stopped BFing when we were out, it was at home only. She had a feed to nap, but she dropped the daytime nap when she turned two and by then was only feeding first thing in the morning, evening and during the night. We co-slept until she was just over two, and then I started to get her into her own room. The transition worked well (took a few days) and after a bit she would come and find me if she wanted a feed in the night rather than crying.
We talked quite a bit about feeds and how one day the b'sms (as she called them) would stop working, but that was fine because there were lots of delicious things she could eat instead. I can't remember whether I stopped the night feeds first, or stopped feeding her to sleep, but I think the former. I explained in advance, and just cuddled her when she woke (if she was very distressed I let her have a little bit), but we did get through that pretty quickly. I had a beanbag next to her bed and fell asleep there a few times. The huge breakthrough was stopping feeding to sleep. I switched story time around, and we fed, had stories, then lights out.
She continued with the morning feed until last Christmas, about two months after she turned three. A couple of times she had been distracted in the morning so forgot about a feed, and over Christmas it happened several days in a row - that was that! I let her have a feed again when she was miserable with a chest infection a week or so after, but she was fine about giving it up. She still likes to use them as a comfort blanket (I let her hold them rather than feed at bedtime at first), but only does that for a short while at bedtime or very early morning.
I never imagined that I'd BF for so long. I thought that after a year she would lose interest, but instead it was a drawn out but gentle way to stop. Sorry, this turned into a bit of an essay! Good luck.