The process to composite in Cycles is actually pretty similar to the process in Blender Render, except for the fact the there are no “Shadow Catcher” materials (these are the materials that only render the shadows they receive), so you’ll need to use the Shadow pass and use a little trick to get the same effect (as in Blender Render).
3.145.91.196