The Docbook XML sources of the documentation are hosted on php.net's SVN server in the peardoc module.
The checkout process is relatively simple:
$ svn checkout http://svn.php.net:/repository/pear/peardoc/trunk
Details about this process as well as anonymous login data can be found on php.net's SVN page.
You need rights for the peardoc SVN module to be able to commit. Along with pear karma, every developer should have gotten the appropriate rights to peardoc. This is how it should be in theory, but one will probably have to send a mail to email@example.com asking for documentation karma.