-
Notifications
You must be signed in to change notification settings - Fork 317
PHP manual
Enable PHP core documentation for the doc command.
# Install/update to latest version
psysh --update-manual
# Switch language (en, de, es, fr, ja, pt_BR, ru, tr, zh)
psysh --update-manual=frNote: As of v0.12.14, phar builds include the PHP manual by default!
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.
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.
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".
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.