Anthony Mills has released a procedural dungeon generator plugin for Phaser. Simply load the plugin into Phaser, set the require parameters and then create the dungeon.
Parameters include the size of the map, the ability to set the sprites used for the walls and floors, the maximum number of rooms the dungeon can contain and the minimum and maximum sizes of each room. Example code is given and this could be a great starting point for your own dungeon generator or game.