\documentclass{article}
\usepackage{ulem}
\pagestyle{headings}
\begin{document}
\tableofcontents

\part{ Horde Framework Module}
The \textsl{Horde Framework} modules, also known as \textsl{Horde Libraries}, are an integral part of the \textsl{Horde Application Framework}. These modules are managed in our Git repositories\footnote{https://www.horde.org/source/} and can be downloaded either from our PEAR server\footnote{https://pear.horde.org} or from Github\footnote{https://github.com/horde} directly. The modules are general purpose libraries that are being used by several Horde applications or the framework itself, but can also be utilized outside the Framework in custom PHP solutions. They are developed, packaged, and distributed as PEAR\footnote{https://pear.php.net/} and Composer packages\footnote{http://getcomposer.org}.

\section{ Installation}
Most of these methods require that you first tell your PEAR installation about the Horde PEAR channel:

\begin{verbatim}

pear channel-discover pear.horde.org
\end{verbatim}

\subsection{ Installing everything from Git}
 You should use the Horde Git Tools\footnote{https://github.com/horde/git-tools} to download and install multiple libraries or the whole framework at once.

\subsection{ Installing individual libraries from Git}
You can checkout and install individual packages directly from GitHub\footnote{https://github.com/horde} or with the Horde Git Tools like above. For example, to install the Horde\_Compress package, in the \texttt{Compress} directory, you would run:

\begin{verbatim}

pear install Compress/package.xml
\end{verbatim}

\subsection{ Installing from https://pear.horde.org/\footnote{https://pear.horde.org/}}
Installing from pear.horde.org is simple. Once you have "discovered" the channel as described above, you can install Horde packages just like other PEAR packages. For example to install the Compress package:

\begin{verbatim}
pear install horde/Horde_Compress
\end{verbatim}

To view the available packages, their states (alpha, beta, stable), dependencies, and other information about them, visit https://pear.horde.org\footnote{https://pear.horde.org}.

\subsection{ If you already have a Horde release}
Horde releases come with all of the required framework libraries installed, and also include the necessary code to make everything available to Horde without any further installation or PHP configuration.

\section{ Use}
If PHP has been set up properly, the local PEAR repository should be in PHP's \texttt{include\_path\footnote{https://php.net/manual/en/ini.core.php\#ini.include-path}}. If installing the Horde Libraries either separately with the PEAR installer or using the Horde Git Tools, they are available alongside PEAR's packages, and can be included in your custom code the same way:

\begin{verbatim}

// Include PEAR's DB package.
require_once 'DB.php';
// Include PEAR's Text_Wiki package.
require_once 'Text/Wiki.php';
// Include Horde's Horde_Tree package.
require_once 'Horde/Tree.php';
// Include Horde's Horde_Text_Flowed package.
require_once 'Horde/Text/Flowed.php';
\end{verbatim}

If using the Horde environment, these require\_once statements are not needed as the libraries will be autoloaded the first time they are used.

\section{ Development}
\subsection{ Git organization}
All libraries are managed in GitHub\footnote{https://github.com/horde}. Each library has its own subdirectory. The library package names are ALWAYS \texttt{Horde\_<Name>}, and the directory names are \texttt{<Name>}.

Each package directory contains a package.xml\footnote{https://pear.php.net/manual/en/guide.developers.package2.php} file with package descriptions, file listings, dependencies, change logs etc. As all Horde Libraries are following the PEAR\footnote{https://pear.php.net} standard, they can be installed using the PEAR installer\footnote{https://pear.php.net/manual/en/installation.php} or may be symlinked to a subdirectory of the Horde installation.  For further instructions, see the Installation Instructions located above.

\subsection{ Directory structure}
\begin{verbatim}

Name/
    package.xml
    lib/
        Horde/
            Name.php
            Name/
                foo.php
                bar.php
...
\end{verbatim}

After installation:\newline
\begin{verbatim}

lib/
    Horde/
        Name.php
        Name/
            foo.php
            bar.php
...
\end{verbatim}

A rule of thumb is that each underscore in a package name is translated to an additional directory after installation.

\end{document}
