root@user /home/fapchat/Рабочий стол/Projects/composer # composer global require phploc/phploc
Changed current directory to /root/.config/composer
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version 5.0 for phploc/phploc
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 10 installs, 0 updates, 0 removals

  • Installing psr/container (1.0.0): Downloading (100%)
  • Installing symfony/service-contracts (v1.1.6): Downloading (100%)
  • Installing symfony/polyfill-php73 (v1.12.0): Downloading (100%)
  • Installing symfony/polyfill-mbstring (v1.12.0): Downloading (100%)
  • Installing symfony/console (v4.3.4): Downloading (100%)
  • Installing sebastian/version (2.0.1): Downloading (100%)
  • Installing symfony/finder (v4.3.4): Downloading (100%)
  • Installing theseer/fdomdocument (1.6.6): Downloading (100%)
  • Installing sebastian/finder-facade (1.2.2): Downloading (100%)
  • Installing phploc/phploc (5.0.0): Downloading (100%)

    symfony/service-contracts suggests installing symfony/service-implementation
    symfony/console suggests installing symfony/event-dispatcher
    symfony/console suggests installing symfony/lock
    symfony/console suggests installing symfony/process
    symfony/console suggests installing psr/log (For using the console logger)
    Writing lock file
    Generating autoload files

root@user /home/fapchat/Рабочий стол/Projects/composer # phploc src
bash: phploc: команда не найдена
root@user /home/fapchat/Рабочий стол/Projects/composer # phploc
bash: phploc: команда не найдена

I don't know, I don't speak Russian. Mind translating the output?

Says "command not found"

Not sure how stuff "installed" from composer works, so no idea if you're just supposed to be able to use that installed stuff as you would normally in bash.

Well, I do see they're running it as root and it literally says not to do that in the output, so maybe a good step would be...ya know...to listen to the developers 😛 Their composer command also makes it pretty clear it gets put into the vendor bin dir relative to the composer project (per-project, not global). And using the phar method basically provides a binary you can put into /usr/bin.

Reading docs probably wouldn't hurt: https://github.com/sebastianbergmann/phploc#composer @fapchat2