Third-party lightning cables are a dime a dozen these days. Head over to online retailers like eBay or Amazon and search for some. The choices can be overwhelming and not all of them may be reliable.
You could always buy the original cable directly from Apple if you're willing to shell out $20 for it. There are cheaper alternatives that are reliable though. And a few third-party cable makers even offer a warranty.
I use a third-party cable made by Anker in my car to use CarPlay or AppRadio Mode. I have another Anker cable connected to a simple 12V USB charger too for the times I only need to charge my phone. Cables used in the car are perhaps prone to more wear compared to the ones you use at home.
The most common problem with charging cables is fraying, either at the USB end or lightning end. Recently, one of my Anker cables stopped working as the lightning end came loose. I decided to contact Anker support to check if I had any warranty I could avail of.












