cvs: peardoc /en/chapters intro.xml

From: Date: Sun, 10 Feb 2002 08:17:58 +0000
Subject: cvs: peardoc /en/chapters intro.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2351@lists.php.net to get a copy of this message
ssb Sun Feb 10 03:17:58 2002 EDT Modified files: /peardoc/en/chapters intro.xml Log: * added working draft of the PEAR Manifest

Index: peardoc/en/chapters/intro.xml diff -u peardoc/en/chapters/intro.xml:1.3 peardoc/en/chapters/intro.xml:1.4 --- peardoc/en/chapters/intro.xml:1.3 Sat Jan 12 09:48:10 2002 +++ peardoc/en/chapters/intro.xml Sun Feb 10 03:17:57 2002 @@ -1,47 +1,224 @@ <?xml encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> +<!-- + WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING + THIS DOCUMENT YET. + --> <chapter id="introduction"> + <docinfo> + <author> + <firstname>Stig</firstname> + <surname>Bakken</surname> + </author> + <date>2002-02-10</date> + </docinfo> <title>Introduction</title> + <subtitle>The PEAR Manifest</subtitle> <simpara> - PEAR is dedicated to Malin Bakken, - born 1999-11-21 (the first PEAR code was written just two hours - before she was born). + PEAR is dedicated to Malin Bakken, born 1999-11-21. </simpara> - <sect1 id="pear-whatis"> + <sect1 id="about.pear"> <title>What is PEAR?</title> - <simpara> - PEAR is a code repository for PHP extensions and PHP library code - inspired by TeX's CTAN and Perl's CPAN. - </simpara> <para> - The purpose of PEAR is: + PEAR is short for "PHP Extension and Application Repository" and + is pronounced just like the fruit. The purpose of PEAR is to + provide: <itemizedlist> <listitem> <simpara> - to provide a consistent means for library code authors to share - their code with other developers + A structured library of open-sourced code for PHP users </simpara> </listitem> <listitem> <simpara> - to give the PHP community an infrastructure for sharing code + A system for code distribution and package maintenance </simpara> </listitem> <listitem> <simpara> - to define standards that help developers write portable and - reusable code + A standard style for code written in PHP, + <link linkend="standards">specified here</link> </simpara> </listitem> <listitem> <simpara> - to provide tools for code maintenance and distribution + The PHP Foundation Classes (PFC), + <link linkend="about-pfc">see more below</link> + </simpara> + </listitem> + <listitem> + <simpara> + The PHP Extension Code Library (PECL), + <link linkend="about-pecl">see more below</link> + </simpara> + </listitem> + <listitem> + <simpara> + A web site, mailing lists and download mirrors to support the + PHP/PEAR community </simpara> </listitem> </itemizedlist> </para> + + <sect2 id="about-pear-stlib"> + <title>Structured Library of PHP Code</title> + <para> + The code in PEAR is partitioned in "packages". Each package + is a separate project with its own development team, version + number, release cycle, documentation and a defined relation to + other packages (including dependencies). Packages are + distributed as gzipped tar files with a description file inside, + and installed on your local system using the PEAR installer. + </para> + <para> + There are two types of packages: source packages (containing + source files only), and binary packages (containing + platform-specific binary files, and possible source files). + Installing source packages with C code obviously requires a C + build environment. + </para> + <para> + PEAR defines a package tree, where each "node" in the tree is + represented by a part of the package name. The nodes are + organized by simple descriptive topics, and each part is + separated by an underscore. Examples of package names are + "MP3_Id", "Archive_Tar" and "HTTP_Post". + </para> + <para> + Packages may relate to eachother through explicit dependencies, + but there is no automatic relation between for example a package + and its "parent" in the package tree (for example, "HTTP_Post" is + by default independent of "HTTP"). + </para> + <para> + A few top-level nodes in the package tree called + "sub-repositories" have special functions, currently these are + <link linkend="about-pecl">PECL</link>, <link + linkend="about-gtk">Gtk</link> and <link + linkend="about-app">App</link>. For each of these, different + rules apply, see more in the description of each sub-repository + below. + </para> + <para> + A style guide, the <link linkend="standards">PEAR Coding + Standards</link> (short PCS), exists to ease collaboration + between PEAR developers, to help quality and portability, and to + help PEAR contributors to provide consistent-looking-and-feeling + APIs. For packages in the <link linkend="about-pfc">PFC</link>, + this standard applies strictly, for non-PFC packages it applies + more relaxed. + </para> + </sect2> + + <sect2 id="about-pear-distpkg"> + <title>Code Distribution and Package Maintenance</title> + <para> + All PEAR packages are registered in and uploaded to a central + database available at pear.php.net. Open-sourced + third-party packages may also be registered and uploaded. + Closed-source packages may be installed by the PEAR installer, + but the PEAR database is for open-source code. + </para> + <para> + Pear.php.net will provide both a human-friendly (HTML) and + machine-friendly (currently XML-RPC) interface to the PEAR + database. Package downloads are done with plain HTTP. + Other functions the pear.php.net site will provide are: + <itemizedlist> + <listitem> + <simpara>user account management (integrated with the CVS server)</simpara> + </listitem> + <listitem> + <simpara>package management</simpara> + </listitem> + <listitem> + <simpara>release management</simpara> + </listitem> + </itemizedlist> + </para> + <para> + Packages are distributed as a gzipped tar file with an XML description + file inside. The description file contains some information + about the package, a list of files and their roles, and dependencies. + </para> + </sect2> + + <sect2 id="about-pfc"> + <title>The PHP Foundation Classes</title> + <titleabbrev>PFC</titleabbrev> + <para> + The PHP Foundation Classes is a subset of PEAR that focuses on + quality, generality, interoperability and compatibility. If + PHP is going to continue bundling PEAR packages beyond the + installer, it will bundle the PFC. + </para> + <para> + Focus on quality means that no packages or releases or less than "stable" + quality are accepted in the PFC. + </para> + <para> + Generality means that packages should not be more than reasonably + specific to any type of environment (such as an output format + like HTML, an operating system, a web server or SAPI backend + etc). + </para> + <para> + Interoperable packages work well with other packages, have + stable, standardized APIs, prefer other well-established (and + also interoperable) components and also work well in different + environments (PHP version, SAPI backend, operating system etc.) + </para> + <para> + Compatibility is not just about supporting the same syntax and + semantics as earlier versions, it is also about planning ahead + when writing the code. Designing code so it would be easy, or at + least possible, to add features that are likely to appear later, + gives code that is also "forward-compatible". + </para> + </sect2> + + <sect2 id="about-pecl"> + <title>The PHP Extension Code Library (PECL)</title> + <subtitle>PECL</subtitle> + <para> + PECL (pronounced "pickle") is a sub-repository of PEAR for C + extensions ala those distributed with PHP 4, in fact, having + somewhere to move extensions to from PHP was one of the + motivations when creating PECL. Extensions in PECL follow PHP's + coding standards rather than PEAR's, but they are distributed and + installed as PEAR packages. + </para> + <para> + The process of moving an extension from PHP to PECL is referred + to as "pickling". + </para> + </sect2> + + <sect2 id="about-gtk"> + <title>Gtk Packages</title> + <subtitle>Gtk</subtitle> + <para> + TBD + </para> + </sect2> + + <sect2 id="about-app"> + <title>Application Packages</title> + <subtitle>App</subtitle> + <para> + TBD + <!-- + Ideas: + * files may also be installed in the web server's document root + * installer knows how to configure one or more web servers to + set up a virtual host or subdirectory for the application + --> + </para> + </sect2> + </sect1> </chapter>
« previous php.pear.cvs (#2351) next »