I'm partial to Peerless Archer out of Silver Marches. Requires BAB of 7, 10 ranks of craft (bowmaking), proficiency in either longbow or shortbow (or composite types), Point Blank, Quickdraw, Far shot, & Precise shot. Class gives you ranged sneak attack, bonuses to craft (bowmaking), reduces cover and concealment penalties, allows you to fletch magic arrows, power attack for bows, and threaten like a reach weapon over the course of 10 levels.
Another option is "Order of the Bow Initiate" out of Sword and Fist. That class requires BAB of 5, 2 ranks of knowledge (religion), proficiency in either longbow or shortbow (or composite types), Point Blank, Rapid Shot, Precise shot, Weapon Focus & Weapon Specialization (longbow or shortbow or composite). It gives ranged sneak attack, no longer draws AoO from shooting a bow next to an enemy, Superior Weapon Focus & Superior Weapon Specialization, free attack on someone who provoked an AoO from an ally, Zen Archery feat, and the ability to bank a shot off a wall to treat an opponent as flat-footed.