My iphone charger just quit charging how can I use my computer to charge it?

My iphone charger just quit charging how can I use my computer to charge it?

A cable with the appropriate connectors on it should do the job.