PHP package guidelines
CLR – Cross – Eclipse – Free Pascal – GNOME – Go – Haskell – Java – KDE – Kernel – Lisp – MinGW – Nonfree – OCaml – Perl – PHP – Python – Ruby – VCS – Web – Wine
This document covers the creation of PKGBUILDs for PHP libraries. The target audience of this document is intended to be packagers of PHP libraries. For PHP Web applications, see Web application package guidelines
Package names
For modules the package name should begin with php-
and the rest of the name should be constructed from the library name by converting it to lowercase and separate words with hyphens. For example the package name corresponding to File iterator
will be php-file-iterator
.
Package file placement
PHP packages should install files into /usr/share/pear/
. This path is in the Arch Linux default php.ini open_basedir directive.
Architecture
In most cases, the arch
array should contain 'any'
because most PHP packages are architecture independent.