• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to manually load composer libraries?

#1
I installed some packages composer into /application/vendors. But seems all of the installed packages are loaded automatically, even if I just want to use one of them.
Is there any way to manually load only needed package?
Reply

#2
There are ways depending on the package. But you would loose automatic updates.

Check another action first, reinstall the packages with --no-dev option, use these commands.

Code:
composer install --no-dev
Code:
composer update --no-dev

If within the packages there are tests, they and their dependencies would not be installed and the size of your vendor/ directory would get lower.
Reply

#3
It's autoloading in the sense that you don't need to do include()s manually, not that everything is loaded at once.

Don't worry about it.
Reply

#4
(01-30-2017, 03:36 PM)Narf Wrote: It's autoloading in the sense that you don't need to do include()s manually, not that everything is loaded at once.

Don't worry about it.


OK, I got it. Thank you.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.