LOL I have great sympathy for you! Been there, done that, got my T-shirt shredded! :-))
There are two methods.
The first involves two people. FIRST, pick up the cat, get a good grip on her. If she is hissing, growling, and swatting, throw a blanket or large towel over her, then grab her. Second, get the cat carrier. Have one person hold the cat carrier firmly, so the opening (entrance) is up. The person holding the cat then drops her, TAIL FIRST into the cat carrier. Close the door QUICKLY and latch it.
The second method can be accomplished by one person alone.
FIRST pick up the cat. Same advice on throwing a towel or blanket over her. Hold her firmly. Second, get a bath towel, and wrap her in it, tightly, so that only her head sticks out. Lay the towel on the floor, put the cat on the towel, and firmly and quickly wrap her up. Wrap her like a mummy. Then drop the cat/mummy into the cat carrier, shut the door QUICKLY, and latch it. The cat will unwrap herself very swiftly, once you let her go, never fear! She will also have a towel in the carrier to lay on.
This is not mean or cruel, and your cat will not hate you!
I have four cats, and whenever I want to give them medicine, or clip their nails, I wrap them. The two females protest the most fiercely, and they love me still.
They still love me, follow me from room to room, lay on me, lick me, climb or jump into my lap, etc.
Think what a mother cat does when she wants a kitten to lay down, or stop bothering her: Whap! She pins her baby with her paw, and holds it down!
I grab my cats and put them in the cat carrier whenever a trip to the vet is required. They still love me.