This tutorial from Toy Brain Studio shows you how to make a Camera Shake plugin for Phaser which you can then roll-out into your own games. The plugin has lots of properties including the shake range, count, interval and axis.
Build games as easily as you play them — join the Phaser Beam waitlist for Early Access.