Answer the question
In order to leave comments, you need to log in
Composer like centralized storage?
I want to use Composer to centrally store my own and third-party packages. I put it in the folder with PHP (E:\Program Files\PHP 7\composer\), now I don't understand what's next.
How do I enable the composer autoloader? Do not write the full path:
E:\Program Files\PHP 7\composer\vendor\autoload.php
What should I write in the PHP include_path so that I can write in the client code just relative to the PHP folder:
require_once composer\vendor\autoload.php ?
Answer the question
In order to leave comments, you need to log in
each project should have its own autoloads and its own composer.json.
Globally, you can only install some cli utilities like phpunit, phpspec, phpcpd, etc. Dependencies for specific projects must be installed locally.
As for repositories, you can set up satis locally, for example, so as not to publish your private packages.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question