Always Use the Right Charger
The easiest way to keep the battery healthy with minimum effort is to use any first-party charger to charge your iPhone. I know this might be hard since Apple doesn’t give away a charger with the iPhone anymore. Still, make sure you use a first-party charger or a charger that’s certified to work with the iPhone.
You’ll notice some chargers have an MFi certification. That literally means it’s Made For iPhone or iPad, so it should be safe to use.
Try to avoid using low-quality chargers at all costs. In the best-case scenario, they’ll only damage your iPhone’s battery. Worst case scenario? Some reports say that faulty chargers have started fires.