It’s very easy. From the terminal use the follwing apt-get command.
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
Then restart apache or nginx, whichever you’re running.
I also saw someone post on Stack Overflow that you can just use this command.
sudo apt-get install php5-curl
However, I the first one I used has worked fine for me.