// Retrieve the URL of the PhabricatorEnv documentation $url = PhabricatorEnv::getDoclink('class-PhabricatorEnv.html'); // Output the URL echo 'PhabricatorEnv documentation: ' . $url;
// Retrieve the URL of the documentation for the Phabricator repository $url = PhabricatorEnv::getDoclink('diffusion/index.html'); // Output the URL echo 'Phabricator documentation: ' . $url;In this example, we retrieve the URL of the documentation page for the Phabricator repository. The returned URL is then output to the screen. Package Library: PhabricatorEnv is a part of the Phabricator package, which is an open-source set of tools for software development.