How to enable cURL in PHP / XAMPP
You have to modify the php.ini files in your xampp folder.
Three files in Three different places need to be changed.
Follow the following steps Show in video to enable curl library with XAMPP in Windows:
Browse and open the following 3 files
C:\Program Files\xampp\apache\bin\php.ini C:\Program Files\xampp\php\php.ini C:\Program Files\xampp\php\php4\php.ini
Uncomment the following line in your php.ini file by removing the semicolon (;).
After that it will look something like something below-
Restart your Apache server.
phpinfo() to see whether curl has properly enabled or not.
Enjoy using curl() library.