Jakub Vrána da0d0bd723 Mention JpGraph in readme (#63)
This was accidentally removed in 5e42e51.
Also link PHP's built-in web server.
2025-05-01 02:23:43 +01:00
2024-11-27 11:14:09 -08:00
2025-05-01 02:23:43 +01:00

doc.php.net

This repository contains files of doc.php.net, the site for documentation contributors to find useful guides, tools, statistics etc.

Running a local version

This can be run using PHP's built-in web server for local development. For the guide pages to work, you also need a local clone of the doc-base repository.

To generate the images for translation status, the GD extension is required. JpGraph needs to be in /include/jpgraph/.

To generate the translation status, you'll also need the English version of the documentation and whatever languages you want to generate data about.

# Leave empty to do all languages, must include 'en' if any listed
$ PHP_LANGS=""
$ git clone https://github.com/php/web-doc.git
$ git clone https://github.com/php/doc-base.git
$ php doc-base/languages.php --clone ${PHP_LANGS:---all}
$ SQLITE_DIR="${PWD}/web-doc/sqlite"
$ mkdir -p ${SQLITE_DIR}
$ php doc-base/scripts/translation/genrevdb.php ${SQLITE_DIR}/status.sqlite.tmp ${PHP_LANGS:-$(php doc-base/languages.php --all --list-ssv)}
$ cd web-doc
$ git clone https://github.com/php/web-shared.git shared
$ BASE_DOCS_PATH="${PWD}/../doc-base/docs" php -S localhost:8080 router.php
Description
No description provided
Readme 212 MiB
Languages
PHP 100%