cvs: phpdoc /en/reference/phar book.xml constants.xml fileformat.xml reference.xml setup.xml using.xml
| From: | Philip Olson | Date: | Sat, 22 Dec 2007 00:03:29 +0000 |
| Subject: | cvs: phpdoc /en/reference/phar book.xml constants.xml fileformat.xml reference.xml setup.xml using.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-707@lists.php.net to get a copy of this message | ||
philip Sat Dec 22 00:03:29 2007 UTC
Modified files:
/phpdoc/en/reference/phar book.xml setup.xml constants.xml
reference.xml using.xml fileformat.xml
Log:
MFB: Upgrade to the new-reference-structure
- Split reference.xml into book.xml, setup.xml
- Moved from reference.xml to book.xml:
- The intro text (partintro), and link to various pages
- Moved from reference.xml to setup.xml:
- The rest: requirements, installation, configuration, and resources
- Created a new constants.xml
- Changed using.xml and fileformat.xml to be chapters
- Changed the intro ID from <extname>.intro to intro.<extname>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/phar/book.xml diff -u /dev/null phpdoc/en/reference/phar/book.xml:1.2 --- /dev/null Sat Dec 22 00:03:28 2007 +++ phpdoc/en/reference/phar/book.xml Sat Dec 22 00:03:28 2007 @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: compression --> +<!-- Membership: pecl --> + +<book xml:id="book.phar" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>PHAR</title> + + <!-- {{{ preface --> + <preface xml:id="intro.phar"> + &reftitle.intro; + <para> + The phar extension + provides the <literal>phar</literal> stream wrapper and the <classname>Phar</classname> + class for manipulating self-contained PHP Archive (phar) files. The + Phar class can be used to create and to extract contents of phar files as + well as iterating over their contents. + </para> + <para> + PHP Archive files (Phars) are special collections of files that can be transparently + run right out of the file, similar to Java's jar archive files. Using a phar archive, + it is possible to distribute a complete PHP application in a single file that will + run out of the file without modification or extraction. Phar + archives can also be used to store files for extraction similar to tar or zip + archive files. Phars support compression using gzip if the + <link linkend="book.zlib">zlib</link> extension is present, and using bzip2 if + the <link linkend="book.bzip2">bz2</link> extension is present. In addition, + iteration and other features are available if the <link linkend="book.spl">SPL</link> + extension is available. Phar signature verification using md5 or sha1 is natively + supported to ensure archive integrity. + </para> + <para> + The original implementation for Phar archives was in the PEAR package + <link xlink:href="http://pear.php.net/PHP_Archive">PHP_Archive</link>, and + the implementation details are very similar, although the Phar extension + is more full-featured. PHP_Archive has more flexibility in Phar creation, + and helpful debugging tools like the <classname>PHP_Archive_Manager</classname> + class, and the Phar extension supports iteration, array access, and + directly manipulating Phar contents through a simple interface. PHP_Archive + supports creation of Phar archives that can be processed using the Phar + extension or PHP_Archive seamlessly, whereas the Phar extension is designed + to create extensions that function with the Phar extension. In addition, + the Phar extension will continue to work even if the + <link linkend="ini.allow-url-include">allow_url_include</link> or + <link linkend="ini.allow-url-fopen">allow_url_fopen</link> INI variables + are disabled, while PHP_Archive-based Phar archives (without the Phar extension) + will not function. + </para> + </preface> + <!-- }}} --> + + &reference.phar.setup; + &reference.phar.constants; + &reference.phar.fileformat; + &reference.phar.using; + <!-- FIXME: Apparently these are 3 classes --> + &reference.phar.reference; + +</book> + +<!-- 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 +indent-tabs-mode:nil +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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/phar/setup.xml diff -u /dev/null phpdoc/en/reference/phar/setup.xml:1.2 --- /dev/null Sat Dec 22 00:03:28 2007 +++ phpdoc/en/reference/phar/setup.xml Sat Dec 22 00:03:28 2007 @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="phar.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="phar.requirements"> + &reftitle.required; + <para> + Phar requires PHP 5.2.0 or newer. Additional features require the + <link linkend="ref.spl">SPL</link> extension in order to take advantage + of iteration and array access to a Phar's file contents. The <literal>phar</literal> + stream does not require any additional extensions to function. + </para> + <para> + You may optionally wish to enable the <link linkend="ref.zlib" >zlib</link> + and <link linkend="ref.bzip2" >bzip2</link> extensions to take + advantage of compressed phar support. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.phar.installation; + <!-- }}} --> + + <!-- {{{ Configuration --> + &reference.phar.ini; + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="phar.resources"> + &reftitle.resources; + <para> + The Phar extension provides the <literal>phar</literal> stream, which + allows accessing files contained within a phar transparently. The + file format of a Phar is described <link linkend="phar.fileformat">here</link> + </para> + </section> + <!-- }}} --> + +</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 +indent-tabs-mode:nil +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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/phar/constants.xml diff -u /dev/null phpdoc/en/reference/phar/constants.xml:1.2 --- /dev/null Sat Dec 22 00:03:29 2007 +++ phpdoc/en/reference/phar/constants.xml Sat Dec 22 00:03:28 2007 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="phar.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.constants; + &no.constants; +</appendix> + +<!-- 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 +indent-tabs-mode:nil +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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/reference.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/phar/reference.xml diff -u phpdoc/en/reference/phar/reference.xml:1.9 phpdoc/en/reference/phar/reference.xml:1.10 --- phpdoc/en/reference/phar/reference.xml:1.9 Mon Dec 10 17:06:08 2007 +++ phpdoc/en/reference/phar/reference.xml Sat Dec 22 00:03:28 2007 @@ -1,96 +1,11 @@ <?xml version = '1.0' encoding = 'iso-8859-1'?> -<!-- $Revision: 1.9 $ --> -<!-- Purpose: compression --> -<!-- Membership: pecl --> +<!-- $Revision: 1.10 $ --> <reference xml:id="ref.phar" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Phar archive stream and classes</title> - <titleabbrev>phar</titleabbrev> - <partintro> - <section xml:id="phar.intro" > - &reftitle.intro; - <para> - The phar extension - provides the <literal>phar</literal> stream wrapper and the <classname>Phar</classname> - class for manipulating self-contained PHP Archive (phar) files. The - Phar class can be used to create and to extract contents of phar files as - well as iterating over their contents. - </para> - <para> - PHP Archive files (Phars) are special collections of files that can be transparently - run right out of the file, similar to Java's jar archive files. Using a phar archive, - it is possible to distribute a complete PHP application in a single file that will - run out of the file without modification or extraction. Phar - archives can also be used to store files for extraction similar to tar or zip - archive files. Phars support compression using gzip if the - <link linkend="ref.zlib">zlib</link> extension is present, and using bzip2 if - the <link linkend="ref.bzip2">bz2</link> extension is present. In addition, - iteration and other features are available if the <link linkend="ref.spl">SPL</link> - extension is available. Phar signature verification using md5 or sha1 is natively - supported to ensure archive integrity. - </para> - <para> - The original implementation for Phar archives was in the PEAR package - <link xlink:href="http://pear.php.net/PHP_Archive">PHP_Archive</link>, and - the implementation details are very similar, although the Phar extension - is more full-featured. PHP_Archive has more flexibility in Phar creation, - and helpful debugging tools like the <classname>PHP_Archive_Manager</classname> - class, and the Phar extension supports iteration, array access, and - directly manipulating Phar contents through a simple interface. PHP_Archive - supports creation of Phar archives that can be processed using the Phar - extension or PHP_Archive seamlessly, whereas the Phar extension is designed - to create extensions that function with the Phar extension. In addition, - the Phar extension will continue to work even if the - <link linkend="ini.allow-url-include">allow_url_include</link> or - <link linkend="ini.allow-url-fopen">allow_url_fopen</link> INI variables - are disabled, while PHP_Archive-based Phar archives (without the Phar extension) - will not function. - </para> - </section> - <section xml:id="phar.requirements" > - &reftitle.required; - <para> - Phar requires PHP 5.2.0 or newer. Additional features require the - <link linkend="ref.spl">SPL</link> extension in order to take advantage - of iteration and array access to a Phar's file contents. The <literal>phar</literal> - stream does not require any additional extensions to function. - </para> - <para> - You may optionally wish to enable the <link linkend="ref.zlib" >zlib</link> - and <link linkend="ref.bzip2" >bzip2</link> extensions to take - advantage of compressed phar support. - </para> - </section> - &reference.phar.installation; - <!-- Information found in configure.xml --> - <!-- reference.phar.configure; --> - <!-- Information found in ini.xml --> - &reference.phar.ini; - <section xml:id="phar.resources" > - &reftitle.resources; - <para> - The Phar extension provides the <literal>phar</literal> stream, which - allows accessing files contained within a phar transparently. The - file format of a Phar is described <link linkend="phar.fileformat">here</link> - </para> - </section> - <section> - &reftitle.classes; - <simplelist> - <member> - <classname>Phar</classname> - </member> - <member> - <classname>PharFileInfo</classname> - </member> - <member> - <classname>PharException</classname> - </member> - </simplelist> - </section> - &reference.phar.using; - &reference.phar.fileformat; - </partintro> - &reference.phar.entities.functions; + <title>Phar archive stream and classes</title> + <titleabbrev>phar</titleabbrev> + + &reference.phar.entities.functions; + </reference> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/using.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/phar/using.xml diff -u phpdoc/en/reference/phar/using.xml:1.5 phpdoc/en/reference/phar/using.xml:1.6 --- phpdoc/en/reference/phar/using.xml:1.5 Wed Jun 20 22:25:15 2007 +++ phpdoc/en/reference/phar/using.xml Sat Dec 22 00:03:28 2007 @@ -1,6 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<section xml:id="phar.using.basics" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.6 $ --> +<chapter xml:id="phar.using.basics" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Using Phar Archives</title> + + <section> <title>Using Phar Archives: Introduction</title> <para> Phar archives are similar in concept to Java JAR archives, but are @@ -263,6 +266,7 @@ contained within a Phar, such as manipulating compression and metadata. </para> </section> +</chapter> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/fileformat.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/phar/fileformat.xml diff -u phpdoc/en/reference/phar/fileformat.xml:1.6 phpdoc/en/reference/phar/fileformat.xml:1.7 --- phpdoc/en/reference/phar/fileformat.xml:1.6 Wed Jun 20 22:25:15 2007 +++ phpdoc/en/reference/phar/fileformat.xml Sat Dec 22 00:03:28 2007 @@ -1,25 +1,27 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<section xml:id="phar.fileformat" xmlns="http://docbook.org/ns/docbook"> - <title>Phar file format</title> - <para> - All Phar files contain three to four sections: - <orderedlist> - <listitem> - <para>a stub</para> - </listitem> - <listitem> - <para>a manifest describing the contents</para> - </listitem> - <listitem> - <para>the file contents</para> - </listitem> - <listitem> - <para>[optional] a signature for verifying Phar integrity</para> - </listitem> - </orderedlist> - </para> -</section> +<!-- $Revision: 1.7 $ --> +<chapter xml:id="phar.fileformat" xmlns="http://docbook.org/ns/docbook"> + <title>Phar File format</title> + <section> + <title>Phar file format</title> + <para> + All Phar files contain three to four sections: + <orderedlist> + <listitem> + <para>a stub</para> + </listitem> + <listitem> + <para>a manifest describing the contents</para> + </listitem> + <listitem> + <para>the file contents</para> + </listitem> + <listitem> + <para>[optional] a signature for verifying Phar integrity</para> + </listitem> + </orderedlist> + </para> + </section> <section> <title>Phar file stub</title> <para> @@ -302,6 +304,7 @@ </table> </para> </section> +</chapter> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/phar/book.xml diff -u /dev/null phpdoc/en/reference/phar/book.xml:1.2 --- /dev/null Sat Dec 22 00:03:28 2007 +++ phpdoc/en/reference/phar/book.xml Sat Dec 22 00:03:28 2007 @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: compression --> +<!-- Membership: pecl --> + +<book xml:id="book.phar" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>PHAR</title> + + <!-- {{{ preface --> + <preface xml:id="intro.phar"> + &reftitle.intro; + <para> + The phar extension + provides the <literal>phar</literal> stream wrapper and the <classname>Phar</classname> + class for manipulating self-contained PHP Archive (phar) files. The + Phar class can be used to create and to extract contents of phar files as + well as iterating over their contents. + </para> + <para> + PHP Archive files (Phars) are special collections of files that can be transparently + run right out of the file, similar to Java's jar archive files. Using a phar archive, + it is possible to distribute a complete PHP application in a single file that will + run out of the file without modification or extraction. Phar + archives can also be used to store files for extraction similar to tar or zip + archive files. Phars support compression using gzip if the + <link linkend="book.zlib">zlib</link> extension is present, and using bzip2 if + the <link linkend="book.bzip2">bz2</link> extension is present. In addition, + iteration and other features are available if the <link linkend="book.spl">SPL</link> + extension is available. Phar signature verification using md5 or sha1 is natively + supported to ensure archive integrity. + </para> + <para> + The original implementation for Phar archives was in the PEAR package + <link xlink:href="http://pear.php.net/PHP_Archive">PHP_Archive</link>, and + the implementation details are very similar, although the Phar extension + is more full-featured. PHP_Archive has more flexibility in Phar creation, + and helpful debugging tools like the <classname>PHP_Archive_Manager</classname> + class, and the Phar extension supports iteration, array access, and + directly manipulating Phar contents through a simple interface. PHP_Archive + supports creation of Phar archives that can be processed using the Phar + extension or PHP_Archive seamlessly, whereas the Phar extension is designed + to create extensions that function with the Phar extension. In addition, + the Phar extension will continue to work even if the + <link linkend="ini.allow-url-include">allow_url_include</link> or + <link linkend="ini.allow-url-fopen">allow_url_fopen</link> INI variables + are disabled, while PHP_Archive-based Phar archives (without the Phar extension) + will not function. + </para> + </preface> + <!-- }}} --> + + &reference.phar.setup; + &reference.phar.constants; + &reference.phar.fileformat; + &reference.phar.using; + <!-- FIXME: Apparently these are 3 classes --> + &reference.phar.reference; + +</book> + +<!-- 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 +indent-tabs-mode:nil +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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/phar/setup.xml diff -u /dev/null phpdoc/en/reference/phar/setup.xml:1.2 --- /dev/null Sat Dec 22 00:03:28 2007 +++ phpdoc/en/reference/phar/setup.xml Sat Dec 22 00:03:28 2007 @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="phar.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="phar.requirements"> + &reftitle.required; + <para> + Phar requires PHP 5.2.0 or newer. Additional features require the + <link linkend="ref.spl">SPL</link> extension in order to take advantage + of iteration and array access to a Phar's file contents. The <literal>phar</literal> + stream does not require any additional extensions to function. + </para> + <para> + You may optionally wish to enable the <link linkend="ref.zlib" >zlib</link> + and <link linkend="ref.bzip2" >bzip2</link> extensions to take + advantage of compressed phar support. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.phar.installation; + <!-- }}} --> + + <!-- {{{ Configuration --> + &reference.phar.ini; + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="phar.resources"> + &reftitle.resources; + <para> + The Phar extension provides the <literal>phar</literal> stream, which + allows accessing files contained within a phar transparently. The + file format of a Phar is described <link linkend="phar.fileformat">here</link> + </para> + </section> + <!-- }}} --> + +</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 +indent-tabs-mode:nil +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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/phar/constants.xml diff -u /dev/null phpdoc/en/reference/phar/constants.xml:1.2 --- /dev/null Sat Dec 22 00:03:29 2007 +++ phpdoc/en/reference/phar/constants.xml Sat Dec 22 00:03:28 2007 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="phar.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.constants; + &no.constants; +</appendix> + +<!-- 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 +indent-tabs-mode:nil +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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/reference.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/phar/reference.xml diff -u phpdoc/en/reference/phar/reference.xml:1.9 phpdoc/en/reference/phar/reference.xml:1.10 --- phpdoc/en/reference/phar/reference.xml:1.9 Mon Dec 10 17:06:08 2007 +++ phpdoc/en/reference/phar/reference.xml Sat Dec 22 00:03:28 2007 @@ -1,96 +1,11 @@ <?xml version = '1.0' encoding = 'iso-8859-1'?> -<!-- $Revision: 1.9 $ --> -<!-- Purpose: compression --> -<!-- Membership: pecl --> +<!-- $Revision: 1.10 $ --> <reference xml:id="ref.phar" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Phar archive stream and classes</title> - <titleabbrev>phar</titleabbrev> - <partintro> - <section xml:id="phar.intro" > - &reftitle.intro; - <para> - The phar extension - provides the <literal>phar</literal> stream wrapper and the <classname>Phar</classname> - class for manipulating self-contained PHP Archive (phar) files. The - Phar class can be used to create and to extract contents of phar files as - well as iterating over their contents. - </para> - <para> - PHP Archive files (Phars) are special collections of files that can be transparently - run right out of the file, similar to Java's jar archive files. Using a phar archive, - it is possible to distribute a complete PHP application in a single file that will - run out of the file without modification or extraction. Phar - archives can also be used to store files for extraction similar to tar or zip - archive files. Phars support compression using gzip if the - <link linkend="ref.zlib">zlib</link> extension is present, and using bzip2 if - the <link linkend="ref.bzip2">bz2</link> extension is present. In addition, - iteration and other features are available if the <link linkend="ref.spl">SPL</link> - extension is available. Phar signature verification using md5 or sha1 is natively - supported to ensure archive integrity. - </para> - <para> - The original implementation for Phar archives was in the PEAR package - <link xlink:href="http://pear.php.net/PHP_Archive">PHP_Archive</link>, and - the implementation details are very similar, although the Phar extension - is more full-featured. PHP_Archive has more flexibility in Phar creation, - and helpful debugging tools like the <classname>PHP_Archive_Manager</classname> - class, and the Phar extension supports iteration, array access, and - directly manipulating Phar contents through a simple interface. PHP_Archive - supports creation of Phar archives that can be processed using the Phar - extension or PHP_Archive seamlessly, whereas the Phar extension is designed - to create extensions that function with the Phar extension. In addition, - the Phar extension will continue to work even if the - <link linkend="ini.allow-url-include">allow_url_include</link> or - <link linkend="ini.allow-url-fopen">allow_url_fopen</link> INI variables - are disabled, while PHP_Archive-based Phar archives (without the Phar extension) - will not function. - </para> - </section> - <section xml:id="phar.requirements" > - &reftitle.required; - <para> - Phar requires PHP 5.2.0 or newer. Additional features require the - <link linkend="ref.spl">SPL</link> extension in order to take advantage - of iteration and array access to a Phar's file contents. The <literal>phar</literal> - stream does not require any additional extensions to function. - </para> - <para> - You may optionally wish to enable the <link linkend="ref.zlib" >zlib</link> - and <link linkend="ref.bzip2" >bzip2</link> extensions to take - advantage of compressed phar support. - </para> - </section> - &reference.phar.installation; - <!-- Information found in configure.xml --> - <!-- reference.phar.configure; --> - <!-- Information found in ini.xml --> - &reference.phar.ini; - <section xml:id="phar.resources" > - &reftitle.resources; - <para> - The Phar extension provides the <literal>phar</literal> stream, which - allows accessing files contained within a phar transparently. The - file format of a Phar is described <link linkend="phar.fileformat">here</link> - </para> - </section> - <section> - &reftitle.classes; - <simplelist> - <member> - <classname>Phar</classname> - </member> - <member> - <classname>PharFileInfo</classname> - </member> - <member> - <classname>PharException</classname> - </member> - </simplelist> - </section> - &reference.phar.using; - &reference.phar.fileformat; - </partintro> - &reference.phar.entities.functions; + <title>Phar archive stream and classes</title> + <titleabbrev>phar</titleabbrev> + + &reference.phar.entities.functions; + </reference> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/using.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/phar/using.xml diff -u phpdoc/en/reference/phar/using.xml:1.5 phpdoc/en/reference/phar/using.xml:1.6 --- phpdoc/en/reference/phar/using.xml:1.5 Wed Jun 20 22:25:15 2007 +++ phpdoc/en/reference/phar/using.xml Sat Dec 22 00:03:28 2007 @@ -1,6 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<section xml:id="phar.using.basics" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.6 $ --> +<chapter xml:id="phar.using.basics" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Using Phar Archives</title> + + <section> <title>Using Phar Archives: Introduction</title> <para> Phar archives are similar in concept to Java JAR archives, but are @@ -263,6 +266,7 @@ contained within a Phar, such as manipulating compression and metadata. </para> </section> +</chapter> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/phar/fileformat.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/reference/phar/fileformat.xml diff -u phpdoc/en/reference/phar/fileformat.xml:1.6 phpdoc/en/reference/phar/fileformat.xml:1.7 --- phpdoc/en/reference/phar/fileformat.xml:1.6 Wed Jun 20 22:25:15 2007 +++ phpdoc/en/reference/phar/fileformat.xml Sat Dec 22 00:03:28 2007 @@ -1,25 +1,27 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<section xml:id="phar.fileformat" xmlns="http://docbook.org/ns/docbook"> - <title>Phar file format</title> - <para> - All Phar files contain three to four sections: - <orderedlist> - <listitem> - <para>a stub</para> - </listitem> - <listitem> - <para>a manifest describing the contents</para> - </listitem> - <listitem> - <para>the file contents</para> - </listitem> - <listitem> - <para>[optional] a signature for verifying Phar integrity</para> - </listitem> - </orderedlist> - </para> -</section> +<!-- $Revision: 1.7 $ --> +<chapter xml:id="phar.fileformat" xmlns="http://docbook.org/ns/docbook"> + <title>Phar File format</title> + <section> + <title>Phar file format</title> + <para> + All Phar files contain three to four sections: + <orderedlist> + <listitem> + <para>a stub</para> + </listitem> + <listitem> + <para>a manifest describing the contents</para> + </listitem> + <listitem> + <para>the file contents</para> + </listitem> + <listitem> + <para>[optional] a signature for verifying Phar integrity</para> + </listitem> + </orderedlist> + </para> + </section> <section> <title>Phar file stub</title> <para> @@ -302,6 +304,7 @@ </table> </para> </section> +</chapter> <!-- Keep this comment at the end of the file Local variables: