PEAR Articles
  Home arrow PEAR Articles arrow The PEAR Package Tour: PEAR Basics
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PEAR ARTICLES

The PEAR Package Tour: PEAR Basics
By: Chris Moyer
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-07-09

    Table of Contents:
  • The PEAR Package Tour: PEAR Basics
  • Installing PEAR Modules
  • Installing Packages
  • Core PEAR Classes
  • A Selection of PEAR Packages

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    The PEAR Package Tour: PEAR Basics


    (Page 1 of 5 )

    If you're a PHP programmer, chances are you've either run across PEAR or could get some excellent use out of it. PEAR is an acronym for PHP Extension and Application Repository. The creators and maintainers of PEAR encourage you to pronounce it just like the fruit with the same spelling. But you'll get more than fiber from PEAR, as you'll learn when you read the rest of this article.

    What is PEAR?

    The purpose of PEAR is to provide a structured and standard way to distribute packages of PHP code and PHP extensions. The extensions are generally distributed as part of the PHP Extension Community Library, PECL (pronounced like “pickle”) and include compiled C code. These extensions can be easily installed with the PEAR installer.

    The PEAR project was started in 1999 by Stig Bakken and now features a constitution and mission statement. Active mailing lists, a #pear channel on efnet, and numerous blogs serve as support for the PEAR project. As of the writing of this article, 2618 developers have created accounts for participation in PEAR development.

    Additionally, PEAR provides a set of coding standards and development practices. These are designed to allow contributors to easily contribute and collaborate without having to adjust to various coding styles. This standardization also helps the users of PEAR packages, as it ensures that they have a consistent experience when using different packages. The PCS, PEAR Coding Standards, also specify that all files include doc-blocks. This ensures that all packages produce documentation for all their capabilities, and results in a very well documented system.

    PEAR is broken up into individual packages which are installed as a unit and generally provide a tightly-knit set of capabilities. Packages can be set up to depend on other packages, and the PEAR system eases these requirements by allowing you to easily discover and install these dependencies. Packages are installed with a simple command line tool, from a PEAR distribution server (or “channel”).

    The PEAR project also includes the http://pear.php.net website, which hosts many packages and resources. Additionally, it’s the central hub for the community effort behind the PEAR system and many of the packages. Automatically generated documentation for most packages is also hosted on the PEAR site.

    More PEAR Articles Articles
    More By Chris Moyer


       · Thanks for reading my PEAR article. This is the first of a series, with others...
     

    PEAR ARTICLES ARTICLES

    - Deleting Authors from a PEAR Content Managem...
    - PEAR CMS: Index and Delete Scripts
    - Listing Articles for a PEAR Content Manageme...
    - Building an Authors Page for a PEAR CMS
    - Building the View Details Page in a PEAR CMS
    - Creating the Main Pages of a PEAR CMS
    - Completing the Login Script for a PEAR CMS
    - User Authentication for a PEAR CMS
    - A PEAR CMS: Examining the Code
    - Building a Content Management System with PE...
    - Installing a PEAR Package
    - My PEAR: The Beginning
    - Using XML_RPC2 with PEAR
    - Using Web Service APIs (Amazon and Yahoo!) w...
    - Database Abstraction with MDB2 from PEAR





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT