cvs: peardoc / manual.xml.in /en/guide/developers contributing.xml intro.xml meaning.xml packagedef.xml supporting.xml

From: Date: Tue, 23 Jul 2002 13:22:10 +0000
Subject: cvs: peardoc / manual.xml.in /en/guide/developers contributing.xml intro.xml meaning.xml packagedef.xml supporting.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5297@lists.php.net to get a copy of this message
mj Tue Jul 23 09:22:10 2002 EDT Added files: /peardoc/en/guide/developers intro.xml packagedef.xml contributing.xml meaning.xml supporting.xml Modified files: /peardoc manual.xml.in Log: * Ladies and Gents, please welcome the PEAR developers guide.

Index: peardoc/manual.xml.in diff -u peardoc/manual.xml.in:1.28 peardoc/manual.xml.in:1.29 --- peardoc/manual.xml.in:1.28 Fri Jul 12 00:26:20 2002 +++ peardoc/manual.xml.in Tue Jul 23 09:22:10 2002 @@ -36,6 +36,15 @@ &chapters.faq; </part> + <part id="guide-developers"> + <title>&DevelopersGuide</title> + &guide.developers.intro; + &guide.developers.meaning; + &guide.developers.contributing; + &guide.developers.packagedef; + &guide.developers.supporting; + </part> + <part id="pear-core"> <title>&Core;</title> &core.pear; Index: peardoc/en/guide/developers/intro.xml +++ peardoc/en/guide/developers/intro.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. --> <chapter id="developers.intro"> <docinfo> <author> <firstname>Martin</firstname> <surname>Jansen</surname> </author> <date>2002-05-27</date> </docinfo> <title>Introduction</title> <subtitle>A guide to PEAR written for developers by developers.</subtitle> <sect1> <title>Purpose of this text</title> <simpara> The intention of this guide is to provide developers, who want to contribute to PEAR, with all necessary information to start working effectively. </simpara> <simpara> The first part of this guide will cover the advantages a developer will have when using PEAR code in his every-day work. After that we will show you how to contribute your own code to PEAR. Finally the guide will point out, in which ways a developer can support the PEAR project. </simpara> </sect1> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/en/guide/developers/packagedef.xml +++ peardoc/en/guide/developers/packagedef.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. --> <chapter id="developers.packagedef"> <title>The package definition file <filename>package.xml</filename></title> <titleabbrev><filename>package.xml</filename></titleabbrev> <sect1 id="developers.packagedef.intro"> <title>Introduction to the package definition file <filename>package.xml</filename></title> <titleabbrev>Introduction</titleabbrev> <simpara> The package definition file <filename>package.xml</filename> is, as the name already implies, a well-formed XML file that contains all information about a PEAR package. </simpara> <simpara> This chapter will describe the allowed elements of the package definition file and it will discuss how to create such a file for your package. </simpara> <sect2> <title>Allowed elements</title> <para> The toplevel element in <filename>package.xml</filename> is the element <literal>&lt;package version="1.0"&gt;</literal>. The allowed sub elements are: </para> <itemizedlist> <listitem> <simpara> <literal>&lt;name&gt;</literal>: The name of the package. </simpara> </listitem> <listitem> <simpara> <literal>&lt;summary&gt;</literal>: Short summary of the package's description. </simpara> </listitem> <listitem> <simpara> <literal>&lt;description&gt;</literal>: Full length description of the package. </simpara> </listitem> <listitem> <simpara> <literal>&lt;license&gt;</literal>: The license of the package (LGPL, PHP License etc.). </simpara> </listitem> <listitem> <para> <literal>&lt;maintainers&gt;</literal>: Information about the maintainers of the package. <itemizedlist> <listitem> <para> maintainer: Information about a single maintainer. (May be used multiple times.) <itemizedlist> <listitem> <simpara> <literal>&lt;user&gt;</literal>: The account name of the user. </simpara> </listitem> <listitem> <simpara> <literal>&lt;role&gt;</literal>: The role the user has during package development. (Can be either lead, developer, helper.)</simpara> </listitem> <listitem> <simpara> <literal>&lt;name&gt;</literal>: The realname of the user. </simpara> </listitem> <listitem> <simpara> <literal>&lt;email&gt;</literal>: The email address of the user. </simpara> </listitem> </itemizedlist> </para> </listitem> </itemizedlist> </para> </listitem> <listitem> <para> <literal>&lt;release&gt;</literal>: Information about the current release. <itemizedlist> <listitem> <simpara> <literal>&lt;version&gt;</literal>: The version number of the release. </simpara> </listitem> <listitem> <simpara> <literal>&lt;state&gt;</literal>: The state of the release. (Can be one of stable, dev, beta, alpha.) </simpara> </listitem> <listitem> <simpara> <literal>&lt;date&gt;</literal>: The date when the release has been rolled. </simpara> </listitem> <listitem> <simpara> <literal>&lt;notes&gt;</literal>: Releasenotes </simpara> </listitem> <listitem> <para> <literal>&lt;filelist&gt;</literal> <itemizedlist> <listitem> <simpara><literal>&lt;file role="xxx"&gt</literal>: Filename</simpara> </listitem> <listitem> <simpara> <literal>&lt;dir name="xxx" [role="xxx"]&gt</literal>: Name of a subdirectory. This subdirectory can again contain <literal>&lt;file role="xxx"&gt;</literal> entries. </simpara> </listitem> </itemizedlist> </para> </listitem> </itemizedlist> </para> </listitem> <listitem> <para> <literal>&lt;changelog&gt;</literal>: Changelog-like information about the package. <itemizedlist> <listitem> <para> <literal>&lt;release&gt;</literal> <itemizedlist> <listitem> <simpara> <literal>&lt;version&gt;</literal>: Version of the specific release. </simpara> </listitem> <listitem> <simpara> <literal>&lt;state&gt;</literal>: State of the specific release. </simpara> </listitem> <listitem> <simpara> <literal>&lt;date&gt;</literal>: Date when the specific release has been rolled. </simpara> </listitem> <listitem> <simpara> <literal>&lt;notes&gt;</literal>: Changelog information </simpara> </listitem> </itemizedlist> </para> </listitem> </itemizedlist> </para> </listitem> </itemizedlist> </sect2> <sect2> <title>Creating a package definition file</title> <titleabbrev>Creating the file</titleabbrev> <para> <example> <title>Basic <filename>package.xml</filename></title> <programlisting role="xml"> <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE package SYSTEM "../package.dtd"> <package version="1.0"> <name>Money_Fast</name> <summary>Make money fast.</summary> <description> This package helps you to make money pretty fast. </description> <maintainers> <maintainer> <user>foo</user> <name>Joe Foo</name> <email>foo@example.com</email> <role>lead</role> </maintainer> </maintainers> <release> <version>1.0</version> <date>2002-05-27</date> <state>stable</state> <notes> This is the first release. </notes> <filelist> <dir name="/" baseinstalldir="Money"> <file role="php">Fast.php</file> </dir> </filelist> </release> </package> ]]> </programlisting> </example> </para> <para> This <filename>package.xml</filename> can serve as a template for you as it already contains all necessary elements. In most cases you only need to change the character data between the tags in order to use the example in your package. </para> <para> <example> <title>Example for nested directories</title> <programlisting role="xml"> <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> [...] <release> <version>1.0</version> <date>2002-07-23</date> <state>stable</state> <notes> This is the first release. </notes> <filelist> <dir name="/" baseinstalldir="Money"> <file role="php">Fast.php</file> <dir name="Calculator" role="php"> <file>Calculator.php</file> <file>Currency.php</file> <file>Stocks.php</file> </dir> <dir name="examples"> <file role="text">README.txt</file> <file role="php">NASDAQ.php</file> <file role="php">DAX.php</file> </dir> </dir> </filelist> </release> </package> ]]> </programlisting> </example> </para> <para> In this example you get to know a very handy feature: When you have a directory in your package that only contains files of the same type, you can add to role attribute even to the <literal>&lt;dir&gt;</literal> tag instead of adding it to every singe <literal>&lt;file&gt;</literal> tag. </para> <para> With the knowledge you aquired during this chapter you should now be able to produce a package definition file for your own package. If you still have questions concerning the topic, don't hesitate to ask on the <ulink url="mailto:&email.pear.general">mailinglist</ulink>. </para> </sect2> </sect1> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/en/guide/developers/contributing.xml +++ peardoc/en/guide/developers/contributing.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. --> <chapter id="developers.contributing"> <title>Contributing your own code</title> <titleabbrev>Contributing</titleabbrev> <sect1 id="developers.contributing.requirements"> <title>Requirements for contributing code</title> <titleabbrev>Requirements</titleabbrev> <simpara> There are certain requirements your code needs to keep to in order to contributed to PEAR: </simpara> <para> <orderedlist> <listitem> <simpara>Conforming to the coding standards</simpara> <para> If you want to contribute your code to PEAR, it has to be compliant to a set of <link linkend="standards">coding standards</link>. There have been numerous discussions about whether the coding standards are good or not and there has been the decision, that they are absolutely needed - please do not start such a discussion over and over again. </para> </listitem> <listitem> <simpara>Documentation in an appropriate format (plain text, docbook)</simpara> <para> Your code has to come with appropriate documentation in one of the following formats: <itemizedlist> <listitem> <simpara><ulink url="http://www.docbook.org/">Docbook XML</ulink></simpara> </listitem> <listitem> <simpara>Plain Text</simpara> </listitem> </itemizedlist> If you write the documentation in Docbook XML and if the markup is valid, the documentation can be easily added to the official <ulink url="http://pear.php.net/manual/">PEAR Manual</ulink>, which you are reading right now. </para> </listitem> <listitem> <simpara> The contributor (<quote>you</quote>) is willing to provide support for his package(s) and is willing to release future (bug-fixing) versions. </simpara> <para> If you are not willing to maintain your code, it probably makes no sense to contribute it. Maintaining means in PEAR's case that you provide support via the various <ulink url="http://pear.php.net/support.php">mailing lists</ulink>, and that you are willing to roll further releases of your code, that contain bugfixes and enhancements. </para> <warning> <simpara> Code can be removed from PEAR if the original contributor is not willing to maintain the code anymore and if there is no other person that is willing to take over the maintainership. </simpara> </warning> </listitem> </orderedlist> </para> </sect1> <sect1 id="developers.contributing.howto"> <title>How to contribute code in practice</title> <titleabbrev>How to contribute</titleabbrev> <para> <orderedlist> <listitem> <simpara>Finding an appropriate package name</simpara> <para> One of the most important tasks during contributing your code to PEAR is finding an appropriate name for your package. </para> <para> The general syntax for package names is <literal>&lt;Category&gt;_&lt;Name&gt;</literal>. The value for <literal>&lt;category&gt;</literal> has to be choosen from a predefined list of categoriet that are available in PEAR (e.g. <quote>HTTP</quote>, <quote>Net</quote>, <quote>HTML</quote>). The second part is the name of the package (like <quote>Upload</quote>, <quote>Portscan</quote>, <quote>Table</quote>). </para> <para> If you think that your package does not fit in any of the existing categories, you can ask to create a new category. Nevertheless our aim is to keep the category structure as simple as possible. </para> <para> Apart from this general syntax, the package names can also contain more than one category name. An example for this is <literal>HTML_Template_PHPLIB</literal>: The multiple categories indicate that the package <literal>PHPLIB</literal> is part of the category <literal>Template</literal>, that again is part of the <literal>HTML</literal> category. This naming scheme is necessary here since it's possible that there are Template systems in PEAR that don't work with HTML but with another technology. </para> </listitem> <listitem id="developers.contributing.accounts"> <simpara>Getting the necessary accounts</simpara> <para> Right now one can distinguish between two types of accounts related to PEAR: <orderedlist> <listitem> <simpara>Pear.php.net account</simpara> <para> This account is always necessary for you if you want to release your package through PEAR. With this account you have access to the necessary pages on <ulink url="http://pear.php.net/">pear.php.net</ulink> in order to upload and roll new releases.</para> </listitem> <listitem> <simpara>PHP CVS account</simpara> <para> If you want to administrate your code via <ulink url="http://www.cvshome.org/">CVS</ulink> , you can also subscribe for a CVS account to have access to the pear <abbrev>CVS</abbrev> module on <ulink url="http://cvs.php.net/"> cvs.php.net</ulink>. This makes it easier for other users to contribute to your code. </para> <para> If you already have a CVS repository somewhere else (e.g. on <ulink url="http://www.sourceforge.net/">SourceForge</ulink>), you don't need the PHP CVS account. </para> </listitem> </orderedlist> </para> <para> To sign up for your pear.php.net account, go to the <ulink url="http://pear.php.net/account-request.php">PEAR account request page</ulink> and fill out the form there. The PEAR administrators will then receive your request and they will open your account if it sounds reasonable for them. You will be notified about that via email. Please note that you do NOT need a pear.php.net account to download packages from there. </para> <para> To get a PHP CVS account, go <ulink url="http://www.php.net/php-cvs.php">here</ulink> to sign up for it. The PHP CVS account has to be approved by the PHP Group. </para> </listitem> <listitem> <simpara>Bundling releases</simpara> <simpara> Prerequesite for releasign your code is that your <link linkend="developers.contributing.accounts">account request</link> for pear.php.net has been accepted. </simpara> <para> Before you can roll out the first release of your package, you need to the register the package itself. To do this, go <ulink url="http://pear.php.local/package-new.php">here</ulink> and fill out/submit the form. Please choose the name and the category which have been decided in point 1 of this paragraph. </para> <para> After having registered your package, you can create a first release: </para> <para> The first pre-requesite is to create a package definition file: This file is an XML file called <filename>package.xml</filename> that needs to reside in the root directory of your package. </para> <para> To learn about package definition files, please read here. </para> <!-- <para> <example> <title><filename>package.xml</filename></title> <programlisting role="xml"> <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE package SYSTEM "../package.dtd"> <package version="1.0"> <name>Money_Fast</name> <summary>Make money fast.</summary> <description> This package helps you to make money pretty fast. </description> <maintainers> <maintainer> <user>foo</user> <name>Joe Foo</name> <email>foo@example.com</email> <role>lead</role> </maintainer> </maintainers> <release> <version>1.0</version> <date>2002-05-27</date> <state>stable</state> <notes> This is the first release. </notes> <filelist> <dir name="/" baseinstalldir="Money"> <file role="php">Fast.php</file> </dir> </filelist> </release> </package> ]]> </programlisting> </example> </para> <para> ### MORE INFORMATION ABOUT <filename>package.xml</filename> ### </para> --> <para> After having created this file, just run <screen> <userinput> &dollar; pear package </userinput> </screen> in the directory that contains the package definition file. This command will create a <filename>.tgz</filename> file in the same directory. In our example, the complete filename would be <filename>Money_Fast-1.0.tgz</filename>. </para> <para> Now go to <ulink url="http://pear.php.net/release-upload.php">this page</ulink> and upload the tgz file that has been created previously there. This will start the automated release process, which will roll out version 1.0 of the package Money_Fast. </para> </listitem> </orderedlist> </para> </sect1> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/en/guide/developers/meaning.xml +++ peardoc/en/guide/developers/meaning.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. --> <chapter id="developers.meaning"> <title>PEAR's meaning for developers</title> <titleabbrev>Meaning for developers</titleabbrev> <sect1 id="guide.dev.meaning"> <title>Code of high quality</title> <titleabbrev>HQ code</titleabbrev> <para> PEAR only accepts contributed code which is of high quality and which is compliant to the <link linkend="standards">PEAR Coding Standards</link> </para> </sect1> <sect1> <title>Chance to release your own code</title> <titleabbrev>Releasing own code</titleabbrev> <para> PEAR gives you the chance to contribute your code to a enourmous number of PHP developers: To get more information about how to contribute your code in PEAR, <link linkend="developers.contributing"> read here</link>. </para> </sect1> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/en/guide/developers/supporting.xml +++ peardoc/en/guide/developers/supporting.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. --> <chapter id="developers.supporting"> <docinfo> <author> <firstname>Martin</firstname> <surname>Jansen</surname> </author> <date>2002-05-27</date> </docinfo> <title>Supporting PEAR development</title> <sect1 id="guide.dev.supporting"> <title>How to support the PEAR community</title> <titleabbrev>Supporting PEAR</titleabbrev> <simpara> There are numerous ways to support the PEAR project, that are described in this part of the guide. </simpara> <sect2 id="guide.dev.supporting.bugs"> <title>Reporting and fixing bugs</title> <titleabbrev>Bugs</titleabbrev> <para> There is a own chapter about reporting and fixing bugs <link linkend="contributing.bugs">over here</link>. </para> </sect2> <sect2 id="guide.dev.supporting.new-features"> <title>Contributing new features to packages</title> <titleabbrev>Contributing features</titleabbrev> <para> If you have a feature you would like to see included in a package, don't hesitate to contact the maintainer of the package. You can find out, who the maintainer of a package is, by browsing the <ulink url="http://pear.php.net/packages.php">package list</ulink> on the PEAR website and selecting the desired package. The maintainer(s) is/are listed on the package information page. </para> </sect2> <sect2 id="guide.dev.supporting.maintainership"> <title>Becoming the new maintainer for an unmaintained package</title> <titleabbrev>Becoming maintainer</titleabbrev> <para> If a developer has given up the maintainership of his package, you can take over this job. If you feel brave enough to answer support questions, fix bugs and manage release cycles, you can contact the previous maintainer or the <ulink url="&email.pear.dev">PEAR developers mailinglist</ulink> and announce your will to maintain the package. </para> </sect2> <sect2 id="guide.dev.supporting.wishlists"> <title>Buying things from wishlists</title> <titleabbrev>Wishlists</titleabbrev> <para> For all the PEAR developers, PEAR is a project they are working on in their free-time, which means that they don't earn any money with it. If you or the company you are working for is using a PEAR package in one of your/their (commercial) products, you/they can do this for free, of course. But if you think that the author of the package you are using desires some credits, it would be nice to buy something from his wishlist at <ulink url="http://www.amazon.com/">Amazon</ulink> or another internet store. To see if a PEAR developer has registered his wishlist, surf to the <ulink url="http://pear.php.net/accounts.php">Account information page</ulink> and select the developer from the list there. If he has a wishlist, it's noted somewhere on the detail page. </para> </sect2> </sect1> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.pear.cvs (#5297) next »