cvs: peardoc /peardoc2/en/chapters faq.xml installation.xml intro.xml

From: Date: Sat, 02 Nov 2002 16:23:33 +0000
Subject: cvs: peardoc /peardoc2/en/chapters faq.xml installation.xml intro.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7267@lists.php.net to get a copy of this message
mj Sat Nov 2 11:23:33 2002 EDT Modified files: /peardoc/peardoc2/en/chapters faq.xml installation.xml intro.xml Log: * Merge from peardoc.

Index: peardoc/peardoc2/en/chapters/faq.xml diff -u peardoc/peardoc2/en/chapters/faq.xml:1.2 peardoc/peardoc2/en/chapters/faq.xml:1.3 --- peardoc/peardoc2/en/chapters/faq.xml:1.2 Wed Oct 23 09:55:58 2002 +++ peardoc/peardoc2/en/chapters/faq.xml Sat Nov 2 11:23:33 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- [mj] The FAQ needs some heavy revision - don't translate it right now --> <chapter id="faq"> @@ -10,54 +10,9 @@ <title> What is PEAR? </title> - <para> - PEAR is a repository for high quality PHP code and for PHP - extensions written in C, that are distributed via an easy to - use interface system. + This is described <link linkend="introduction">here</link>. </para> - <simpara> - Code in PEAR is compliant to the following points: - </simpara> - <para> - <itemizedlist> - <listitem> - <simpara> - has been approved to be part of PEAR by the PEAR developers - and has the general concensus of the PEAR community - </simpara> - </listitem> - <listitem> - <simpara> - follows a unique <link linkend="standards">coding standard</link> - (already standarized and used all over PEAR) - </simpara> - </listitem> - <listitem> - <simpara> - uses a common <link linkend="error-handling">error handling - mechanism</link> - </simpara> - </listitem> - <listitem> - <simpara> - tries to have a similar way of use - </simpara> - </listitem> - <listitem> - <simpara> - has documentation about its API in the - <link linkend="packages.phpdoc">PHPDoc format</link> - </simpara> - </listitem> - <listitem> - <simpara> - has documentation/examples/tests (to be marked as stable) - </simpara> - </listitem> - - </itemizedlist> - </para> </sect1> <sect1 id="faq.contributor"> @@ -68,157 +23,8 @@ <titleabbrev> Becoming contributor </titleabbrev> - - <simpara> - The rules are the same like the ones for getting a PHP CVS - account. This means you should do one of the following things to - improve your chances to get a CVS account. - </simpara> - <para> - <itemizedlist> - <listitem> - <simpara> - Send <link linkend="faq.patches">patches</link> for existing - PEAR classes. - </simpara> - </listitem> - <listitem> - <simpara> - Create and maintain a new class for PEAR. - </simpara> - </listitem> - <listitem> - <simpara> - Rewrite and maintain an existing class to match the - <link linkend="standards">PEAR Coding Standards</link>. - </simpara> - </listitem> - </itemizedlist> - </para> - <simpara> - Requesting an account without having existing source code or - public pre-work does not make much sense. - </simpara> - <para> - See also <ulink url="http://www.php.net/cvs-php.php">Using CVS - for PHP Development</ulink>. - </para> - <para> - You should announce your intention of commiting new stuff to the - PEAR developers list. It's strongly recommended to subscribe to - the list. See the <ulink url="/support.php">support page</ulink> - for information about subscribing. - </para> - </sect1> - - <sect1 id="faq.patches"> - <title> - Contributing patches - </title> - - <para> - The best possibility to contribute patches is to send them to - the <ulink url="mailto:&email.pear.dev;">PEAR developers list</ulink>. - </para> - <simpara> - Make sure your patch is based on a current CVS snapshot. Don't - send the complete file(s). Use diff or the diff command of CVS - and attach the output of diff to the mail. - </simpara> - <simpara> - Another possibility is to send the patches directly to the - author(s) of the class. But sometimes the author isn't the - maintainer anymore, on vacation or has no access to CVS at the - moment. So better use the mailinglist. - </simpara> - <simpara> - Recommend way for generating patches: - </simpara> - <para> - <itemizedlist> - <listitem> - <para> - <screen> - <userinput> -&dollar; cd /cvs/php.net/pear/Net_Ping - </userinput> - </screen> - </para> - </listitem> - <listitem> - <para> - Retrieve the latest version - <screen> - <userinput> -&dollar; cvs update - </userinput> - </screen> - </para> - </listitem> - <listitem> - <para> - Make the modifications you want - <screen> - <userinput> -&dollar; vi Ping.php - </userinput> - </screen> - </para> - </listitem> - <listitem> - <para> - Check if there have been no modifications while you was - modifing the file. If there were, re-adapt your patch to this - last release. - <screen> - <userinput> -&dollar; cvs update - </userinput> - </screen> - </para> - </listitem> - <listitem> - <para> - Generate the patch against the latest version from CVS - <screen> - <userinput> -&dollar; cvs diff -u Ping.php > ping_diff.txt - </userinput> - </screen> - </para> - </listitem> - </itemizedlist> - </para> - - <simpara> - Note for Outlook Express users: - </simpara> - <para> - The mailing list software accepts only attachments of the content - type "text/plain". OE creates the content type of a attachment by - checking the file ending. So make sure that the diff output, if - stored in a file, the file has an ending, which is assigned to a - program like Notepad (plain-text editors). So better rename your - diff file to <filename>file-diff.txt</filename> before attaching - it. - </para> - </sect1> - - <sect1 id="faq.contributing-where"> - <title> - I want to contribute, in what areas could I do it? - </title> - <titleabbrev> - How to contribute? - </titleabbrev> - <para> - The general directory for new PEAR classes and modules is pear/ - in the CVS repository. The name of the directory of the new class - is build from the class name and the package name. If you wrote a - class called Bar as a part of the package Foo, the name of the - directory is <filename>Foo_Bar</filename>. So the resulting path - is <filename>pear/Foo_Bar</filename>. + This is described <link linkend="developers.intro">here</link>. </para> </sect1> @@ -243,7 +49,7 @@ whatever the right name is. </para> </sect1> - +<!-- <sect1 id="faq.install-pecl"> <title> How do I install a PECL module written in C? @@ -291,21 +97,25 @@ </para> <simpara> The path, where the module.so is expected, can be different on - your system (check php.ini and phpinfo()). To actually use the - module, you have to add it to the extension directive in php.ini - or to load it with dl("module.so") within your php-files. + your system (check <filename>php.ini</filename> and + <function>phpinfo</function>). To actually use the + module, you have to add it to the extension directive in + <filename>php.ini</filename> + or to load it with dl("module.so") within your PHP files. </simpara> <simpara> - You can compile this extension directly into your php-binary, too. - For this you have to extract the package into php4/ext (in your - source directory). After that do also phpize in this new + You can compile this extension directly into your PHP binary, too. + For this you have to extract the package into + <filename>php4/ext</filename> (in your source directory). After + that do also phpize in this new module-directory. But before you can configure your main - php-exectuable, you have to do a ./buildconf on the toplevel of - the php-sources. Now you can configure/compile your php-executable + php-exectuable, you have to do a <filename>./buildconf</filename> + on the toplevel of + the php-sources. Now you can configure/compile your PHP executable with the new extension, as you would with all other extensions. </simpara> </sect1> - +--> <sect1 id="faq.separated"> <title> Why is PEAR seperated into pear/ and php4/pear/? @@ -320,13 +130,13 @@ </simpara> <simpara> For future releases of PEAR this isn't workable because PEAR will - become to big to be bundled with every release of PHP. So there + become too big to be bundled with every release of PHP. So there was a decision to commit all new elements to an own top level directory pear. The other elements which are currently remaining in php4/pear will be moved to the new top level directory soon. - Only the PEAR base classes which are needed by most PEAR elements - and the installer system will remain in php4/pear and will be - bundled with every new release automatically. + Only the <link linkend="about-pfc">PFC code</link> and the PEAR + package manager code will be bundled with every new release + automatically. </simpara> </sect1> @@ -393,8 +203,9 @@ <para> Yes. But make sure, that you mark up the experimental/unstable - status of the project in the documention. The best place to do - this is in the package.xml in the &lt;status&gt;-tag. + status of the project in the documentation. The best place to do + this is in the <filename>package.xml</filename> in the + &lt;status&gt;-tag. The values for this tag are <variablelist> <varlistentry> @@ -428,7 +239,7 @@ <term>stable</term> <listitem> <simpara> - the software was tested, the API fixed, the documention + the software was tested, the API fixed, the documentation wrote and is the recommended release for users and production enviroments </simpara> @@ -465,14 +276,14 @@ <para> Examples are a good idea, especially when your class has a complex - API. But examples are only a part of a documention. Don't create + API. But examples are only a part of a documentation. Don't create examples instead of a documentation. You should store the documentation and the examples in a sub directory 'docs' of the package directory. </para> <para> - Test scripts are recommanded when your class has to by compiled, - requires special extentions/ programs or needs correct installed + Test scripts are recommened when your class has to be compiled, + requires special extentions/programs or needs correctly installed additional files (i.e. templates, graphics). Store them in sub directory called 'tests'. </para> @@ -517,27 +328,10 @@ </simpara> <para> Committing a competitive class has to be announced on the <ulink - url="mailto:&email.pear.dev;">PEAR developers mailinglist</ulink>! + url="mailto:&email.pear.dev">PEAR developers mailinglist</ulink>! </para> </sect1> - <sect1 id="faq.documentation"> - <title> - How should I write the documentation? - </title> - <titleabbrev> - Writing documentation - </titleabbrev> - - <para> - The selected standard to write the API documentation is - <ulink url="http://phpdoc.de/">PHPDoc</ulink>. For the rest of the - documentation like the manual or usage examples, the recommended - formats are plain text, HTML or - <ulink url="http://docbook.org/">DocBook</ulink>. - </para> - </sect1> - <sect1 id="faq.question"> <title> I have a question about PEAR. Where should I ask? @@ -547,25 +341,32 @@ </titleabbrev> <para> - <simplelist> - <member>General questions about the usage of PEAR components - should be posted to the mailing list - <ulink url="mailto:&email.pear.general;">pear-general@lists.php.net - </ulink>. - </member> - - <member> - All technical discussions concerning the development of PEAR - components should be posted to <ulink url="mailto:&email.pear.dev;"> - pear-dev@lists.php.net</ulink>. - </member> - - <member> - Question concerning the website can be sent to - <ulink url="mailto:pear-webmaster@php.net"> - pear-webmaster@php.net</ulink>. - </member> - </simplelist> + <itemizedlist> + <listitem> + <para> + General questions about the usage of PEAR components + should be posted to the mailing list + <ulink url="mailto:&email.pear.general">pear-general@lists.php.net + </ulink>. + </para> + </listitem> + + <listitem> + <para> + All technical discussions concerning the development of PEAR + components should be posted to <ulink url="mailto:&email.pear.dev"> + pear-dev@lists.php.net</ulink>. + </para> + </listitem> + + <listitem> + <para> + Question concerning the website can be sent to + <ulink url="mailto:pear-webmaster@php.net"> + pear-webmaster@php.net</ulink>. + </para> + </listitem> + </itemizedlist> </para> <para> Information on subscribing this mailing lists can be found @@ -617,14 +418,39 @@ Allowed licenses </titleabbrev> <simpara> - Answer written by Jan Lehnardt and Tomas V.V. Cox. + Answer written by Jan Lehnardt, Tomas V.V. Cox and Rasmus Lerdorf. </simpara> <para> - To make it short: Any Open Source License. See the + To make it short: Any Open Source/Free Software License. See the <ulink url="http://www.opensource.org/licenses/index.html"> OSI Approved Licenses</ulink> for a summary of Open Source - licenses.</para> + licenses and <ulink url="http://www.gnu.org/licenses/license-list.html"> + FSF Approved Licenses</ulink>. Pick one that appears on both lists. It + does not need to be a GPL-compatible license from the FSF list. Here are + a subset of the licenses that are on both lists: + Apache License, + Artistic license, + BSD license, + Common Public License, + GPL, + IBM Public License, + Intel Open Source License, + Jabber Open Source License, + LGPL, + MIT license, + Mozilla Public License, + PHP License, + Python license, + Python Software Foundation License, + QPL, + Sleepycat License, + Sun Industry Standards Source License (SISSL), + Sun Public License, + W3C license, + zlib/libpng license, + Zope Public license. + </para> <para> The recomended licenses are @@ -633,15 +459,15 @@ and <ulink url="http://www.opensource.org/licenses/bsd-license.html">BSD</ulink> style. </para> - + <para> Note that for PECL extensions that are linked into PHP, the license must be compatible with the PHP license. That means you can not GPL a PECL extension or you would be violating the GPL. Note also that if you write an extension that links against a GPL'ed library you will be - violating the GPL. If you need to link against a GPL'ed library, get + violating the GPL. If you need to link against a GPL'ed library, get permission from the author of the library. - </para> + </para> <para> To set the license of you PEAR/PECL package, put it in the head of @@ -705,6 +531,11 @@ <ulink url="http://www.jwz.org/doc/tabs-vs-spaces.html">piece on the subject too</ulink>. </para> + <para> + There is also a tool called <ulink url="http://astyle.sourceforge.net"> + Astyle</ulink> which can help you convert your code to the appropriate + style. + </para> </sect1> </chapter> @@ -722,6 +553,8 @@ sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil +sgml-namecase-general:t +sgml-general-insert-case:lower End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml Index: peardoc/peardoc2/en/chapters/installation.xml diff -u peardoc/peardoc2/en/chapters/installation.xml:1.1.1.1 peardoc/peardoc2/en/chapters/installation.xml:1.2 --- peardoc/peardoc2/en/chapters/installation.xml:1.1.1.1 Mon Sep 30 23:23:04 2002 +++ peardoc/peardoc2/en/chapters/installation.xml Sat Nov 2 11:23:33 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. @@ -31,6 +31,7 @@ <filename>./configure</filename> flag '--without-pear'. </para> <para> +<!-- If you are using a version of PHP that is pretty old, PEAR will not work. You are strongly encouraged to update your installation! If you don't do so, you risk that your server will be hacked by @@ -56,32 +57,37 @@ way is for the gurus amongst you that love to poke around with CVS clients or want to use the latest development versions of a package. - </para> +--> + The packages that are not part of the PFC can be installed with the PEAR + package manager. The manager is comparable to Debian's + <quote>apt-get</quote>. Again: If you are running a recent version of PHP + (&gt; 4.3.0pre1) you can skip the next paragraph. If you running PHP 4.2.* + or earlier, you need to manually install the manager.</para> <para> Apart from installing packages, the PEAR package manager also handles some other tasks: It can create new packages on your machine, manage a registry of installed packages, check - dependencies and it can interact with an XML-RPC service on the - PEAR server, to serve some other tasks. + dependencies and it can interact with an XML-RPC service on + pear.php.net to serve some other tasks. </para> </sect1> <sect1 id="installation.getting"> <title>Getting the PEAR package manager</title> <simpara> - Until all remaining issues concering the final version will be - raised out, we provide a provisional way to install the PEAR + For all of you that are not using the latest version of PHP + (&gt; 4.3.0pre1) we provide a provisional way to install the PEAR package manager that is described on this page. </simpara> <simpara> - Right now you can use a shell script that resides on the - pear.php.net website to install the PEAR base classes and the - PEAR package manager. Simply run + Right now you can use a shell script that resides on go-pear.org + to install the PEAR base classes and the PEAR package manager. + Simply run </simpara> <para> <screen> <userinput> -&dollar; lynx -source http://pear.php.net/~cox/go-pear | sh +&dollar; lynx -source http://go-pear.org | php </userinput> </screen> </para> @@ -96,87 +102,10 @@ for you, you need to change the above line correspondingly. </para> </note> -<!-- [mj]: Uncommented since we prefer get-pear for now - <para> - To use the PEAR package manager, your system has to fulfill the - following requirements: - <itemizedlist> - <listitem> - <simpara> - PHP 4 Interpreter (CGI-Version) has to available - </simpara> - </listitem> - <listitem> - <simpara> - The PEAR files from php4/pear/ CVS have to be installed - </simpara> - </listitem> - <listitem> - <simpara> - Archive/Tar.php has to be copied manually if it does not - exist - </simpara> - </listitem> - </itemizedlist> - </para> - <para> - Installation of the CGI version of PHP is well documented in the - <ulink url="http://php.net/manual/en/installation.php">PHP manual, - chapter 2</ulink>. We will not cover it here again. - </para> - <para> - Now you have to get the latest version of the PEAR package manager - from CVS: - </para> - <para> - <screen> - <userinput> -&dollar; cvs -z3 -d :pserver:cvsread@cvs.php.net:/repository login -Password: [use "phpfi" as password] -cvs -z3 -d :pserver:cvsread@cvs.php.net:/repository co php4/pear - </userinput> - </screen> - </para> - <para> - You now have a directory <filename>php4/pear</filename> - on your system. The subdirectory <filename>php4/pear/scripts - </filename> contains the PEAR package manager. - </para> - <para> - Basically the PEAR package manager consists of two different - scripts: <filename>pear</filename> is the script that is used to - create new packages you want to share with the PEAR community, - to show some configuration etc. <filename>pear-get</filename> is - used to install and upgrade PEAR packages on your system. To - install both this files on your system, simply run the following - lines from <filename>php4/pear</filename>: - </para> - <para> - <screen> - <userinput> -&dollar; make scripts/pear scripts/pear-get -&dollar; make install-programs bin_SCRIPTS='pear pear-get' - </userinput> - </screen> - </para> - <para> - Now you need to adjust some settings in the two files you copied - in the previous step: Go to <filename>/usr/local/bin</filename> - and change the first line (#!@prefix@/bin/php -Cq) in both files - so that it points to the correct path for the PHP CGI interpreter - (e.g. #!/usr/local/bin/php -Cq). - </para> - <para> - Now you should be finished with setting up the PEAR package - manager - Happy installing. If you have still problems with it, - don't be afraid to <ulink url="mailto:&email.pear.dev;">drop us a - note</ulink>. - </para> ---> </sect1> - - <sect1 id="installation.web"> - <title>Web installer</title> + <sect1 id="installation.cli"> + <title>Command line installer</title> + <titleabbrev>CLI installer</titleabbrev> <para> <warning id="installation.web.prerequesite"> <title>Prerequesites</title> @@ -188,30 +117,21 @@ </warning> </para> <para> - The web installer is the easiest way to install PEAR packages on - your system: It connects to the PEAR package server via a simple - HTTP connection, loads the package on your system and installs - it in the desired location. + The command line installer is the easiest way to install PEAR + packages on your system: It connects to the PEAR package server + via a simple HTTP connection, loads the package on your system + and installs it in the desired location. </para> - <note> - <simpara> - We do not sell your IP adress, your hostname or something else - we can determine, while you are downloading a package from the - PEAR server, to any bad guy, who want's to make money with your - personal information. - </simpara> - </note> - <sect2> <title>Fully-automatic installation</title> <para> - Using the web installer is pretty straightforward and easy to - use. Simply run the following line on your shell: + Using the command line installer is pretty straightforward and + easy to use. Simply run the following line on your shell: </para> <para> <screen> <userinput> -&dollar; pear install http://pear.php.net/get/&lt;package&gt; +&dollar; pear install &lt;package&gt; </userinput> </screen> </para> @@ -231,7 +151,7 @@ </para> <para> This command returns a list of all packages that are available in - PEAR. + PEAR at the moment. </para> </sect2> @@ -264,7 +184,8 @@ <title>CVS installer</title> <para> - This passage has not been written yet. + This passage will describe how you install the latest development + version of a PEAR package from CVS. </para> </sect1> Index: peardoc/peardoc2/en/chapters/intro.xml diff -u peardoc/peardoc2/en/chapters/intro.xml:1.1.1.1 peardoc/peardoc2/en/chapters/intro.xml:1.2 --- peardoc/peardoc2/en/chapters/intro.xml:1.1.1.1 Mon Sep 30 23:23:04 2002 +++ peardoc/peardoc2/en/chapters/intro.xml Sat Nov 2 11:23:33 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. @@ -156,7 +156,7 @@ installer, it will bundle the PFC. </para> <para> - Focus on quality means that no packages or releases or less than "stable" + Focus on quality means that no packages or releases with less than "stable" quality are accepted in the PFC. </para> <para> @@ -201,8 +201,15 @@ <title>Gtk Packages</title> <subtitle>Gtk</subtitle> <para> - TBD - </para> + Gtk packages are packages that provide software which uses the + technology of the <ulink url="http://gtk.php.net/">PHP-GTK</ulink> + project. Code in this sub-repository follows PEAR's + <link linkend="standards">coding standards</link>. + </para> + <para> + Right now there is no definitive plan on how they will be + released in PEAR. + </para> </sect2> <sect2 id="about-app">
« previous php.pear.cvs (#7267) next »