Skip to content

PHP manual

Justin Hileman edited this page Nov 24, 2025 · 10 revisions

📕 PHP manual

Enable PHP core documentation for the doc command.

Automatic installation ✨

# Install/update to latest version
psysh --update-manual

# Switch language (en, de, es, fr, ja, pt_BR, ru, tr, zh)
psysh --update-manual=fr

Note: As of v0.12.14, phar builds include the PHP manual by default!

Manual download

Download a manual file from the latest release and drop it in:

  • ~/.local/share/psysh/ (Linux/macOS)
  • /usr/local/share/psysh/ (system-wide)
  • %APPDATA%\PsySH\ (Windows)

Both current (php_manual.php) and legacy (php_manual.sqlite) formats are available.

Path configuration

PsySH stores the manual file in its data directory (see above). By default, it respects the XDG Base Directory environment configuration. It's also possible to override the data directory directly, via the dataDir config option (e.g. 'dataDir' => '/some/other/volume'), or to set the manual file to an explicit path via manualDbFile.

Update checks

PsySH periodically checks for PHP manual file updates. By default this happens weekly, but the frequency can be configured with the updateManualCheck config:

'updateManualCheck' => 'monthly',

Valid options are "always""daily""weekly""monthly", and "never".

Additional languages

Other translations may be available but are not actively maintained. To help translate the PHP manual, see PHP.net translation info.

The PHP documentation is licensed under the Creative Commons Attribution 3.0 License.

Clone this wiki locally