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 to enable curl library with XAMPP in Windows:
Browse and open the following 3 files
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.
Check your phpinfo() to see whether curl has properly enabled or not.
Hope it helps!!