O
O
Outsider V.2015-11-09 12:48:44
Composer
Outsider V., 2015-11-09 12:48:44

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

1 answer(s)
S
Sergey, 2015-11-09
@Audiophile

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 question

Ask a Question

731 491 924 answers to any question