A
A
Anton Shamanov2018-10-07 19:35:11
Composer
Anton Shamanov, 2018-10-07 19:35:11

How to use Composer to create an autoloader for each library separately?

My library includes several third-party ones. Composer creates an autoloader for all libraries, but I need it for each one individually. they will be optional.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2018-10-07
@402d

Composer is a convenient wrapper over spl-autoload-register()
php.net/manual/en/function.spl-autoload-register.php are
actually read from disk into memory, only actually used.
those. it works out of the box just the way you want it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question