Instructions for locally install PHP zip/pdflib

Can someone help me out here? The PEAR entry on the DH wiki is really complicated and unclear. I’m using PHP5. Thanks!