Enable curl in xampp
You have to modify the php.ini files in your xampp folder.
Follow the below steps :
1)Browse and open the php.ini file(find the php.ini path in phpinfo())
C:Program Filesxamppapachebinphp.ini
OR
C:Program Filesxamppphpphp.ini
OR
C:Program Filesxamppphpphp4php.ini
2) Uncomment the following line on your php.ini file by removing the semicolon.
;extension=php_curl.dll
3) Restart your apache server.
Check your phpinfo() to see whether curl has properly enabled or not.