This is a pet hate of mine. My whole family has iPhones but only my wife and daughters cables break because they use the phones while they are plugged in. The cable gets bent sharply where it joins the connector causing it to break.
I'm not sure if the newer braided cables are better or not as they don't have them.
I have never needed to replace mine as when the phone is plugged in and charging I don't use it.