Please select the guide for the version of Phaser you are using:
Getting Started with Phaser 3
or
Getting Started with Phaser 2 / Phaser CE