Back in 2015 there was a great article posted about how to create a life bar in Phaser from scratch. Then last year a plugin was released that encapsulated everything in the article, and made it really simple to drop into your own games. This is the GitHub repo for the plugin, which includes a demo and documentation.