Assuming the object to receive the shadow is on its own layer, surrounded by transparency:
Duplicate the layer and name it Shadow
Load the Shadow layer's transparency as a selection (cntrl-click on the layer in Layers Palette)
Fill with black or your preferred shadow color (alt-bkspace to fill with foreground color)
Deselect (cntrl-d)
Gaussian blur to suit
Move the Shadow layer under the original in the layer stack
Change blending mode to multiply and set opacity to suit
With the Shadow layer active, press cntrl-t to activate Free Transform. Drag the corner and midpoint boxes of the bounding box to create the perspective. Holding down the cntrl key, cntrl-alt or cntrl-alt-shift while dragging will allow you different ways of altering the Shadow layer.
As always, the usual disclaimers apply for any step-by-steps written before the first cup of coffee.