I bought this iPhone charger on EBay and in about 6 months it stopped working(it came with 2). Pretty sure the charger isn't Apple certified?

Can someone tell me why it stops working and how can I know if they are Apple certified? Tnx

"Apple certified" products will have the Apple trademark on them.