<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Packaging and distribution</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Manual do PHP" HREF="index.html"><LINK REL="UP" TITLE="PDO Driver How-To" HREF="internals.pdo.html"><LINK REL="PREVIOUS" TITLE="Testing" HREF="internals.pdo.testing.html"><LINK REL="NEXT" TITLE="pdo_dbh_t definition" HREF="internals.pdo.pdo-dbh-t.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="internals.pdo.testing.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Capítulo 45. PDO Driver How-To</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="internals.pdo.pdo-dbh-t.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="internals.pdo.packaging" >Packaging and distribution</A ></H1 ><DIV CLASS="sect2" ><H2 CLASS="sect2" ><A NAME="AEN246535" >Creating a package</A ></H2 ><P > PDO drivers are released via PECL; all the usual rules for PECL extensions apply. Packaging is accomplished by creating a valid <TT CLASS="filename" >package.xml</TT > file and then running: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="screen" >$ pecl package</PRE ></TD ></TR ></TABLE ><P > This will create a tarball named <TT CLASS="filename" >PDO_SKEL-X.Y.Z.tgz</TT >. </P ><P > Before releasing the package, you should test that it builds correctly; if you've made a mistake in your <TT CLASS="filename" >config.m4</TT > or <TT CLASS="filename" >package.xml</TT > files, the package may not function correctly. You can test the build, without installing anything, using the following invocation: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="screen" >$ pecl build package.xml</PRE ></TD ></TR ></TABLE ><P > Once this is proven to work, you can test installation: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="screen" >$ pecl package $ sudo pecl install PDO_SKEL-X.Y.X.tgz</PRE ></TD ></TR ></TABLE ><P > Full details about <TT CLASS="filename" >package.xml</TT > can be found in the PEAR Programmer's documentation (<A HREF="http://pear.php.net/manual/" TARGET="_top" >http://pear.php.net/manual/</A >). </P ></DIV ><DIV CLASS="sect2" ><H2 CLASS="sect2" ><A NAME="AEN246551" >Releasing the package</A ></H2 ><P > A PDO driver is released via the PHP Extension Community Library (PECL). Information about PECL can be found at <A HREF="http://pecl.php.net/index.php" TARGET="_top" >http://pecl.php.net/index.php</A >. </P ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="internals.pdo.testing.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="internals.pdo.pdo-dbh-t.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Testing</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="internals.pdo.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >pdo_dbh_t definition</TD ></TR ></TABLE ></DIV ></BODY ></HTML >