Question: how to install packages in cygwin?
Answer: Download the Cygwin installer and run setup.exe .
Click Next through the defaults and select mirror for downloading packages.
Search for each package, open the appropriate category (Net or PHP), and click Skip next to each package to select it for installation. ... 
Complete the set up.