The Shakespeare comedy featuring Phebe, who falls in love with Ganymede—Rosalind in disguise—is As You Like It.
Phebe is a shepherdess in the Forest of Arden. The shepherd Silvius loves her devotedly, but Phebe rejects him. When she meets Ganymede, she becomes attracted to the disguised Rosalind, unaware that Ganymede is actually a woman. Rosalind, meanwhile, is in love with Orlando and uses her disguise to guide him through his romantic confusion.
This subplot is part of the play’s larger pattern of mistaken identities, theatrical role-playing, and changing ideas about gender and desire. Rosalind’s disguise allows her to control conversations and relationships in ways unavailable to her at court. Shakespeare’s original audience would also have seen a boy actor playing Rosalind, who disguises herself as a boy, creating another layer of theatrical gender reversal.
A common mix-up is confusing Phebe with Audrey, another woman in the Forest of Arden. Audrey is pursued by Touchstone, while Phebe is the shepherdess caught in the Silvius-Ganymede-Rosalind romantic tangle.