Answer the question
In order to leave comments, you need to log in
Is it possible to add a dependency through composer in such cases?
Hello!
Several libraries and plugins need to be added to laravel. I do composer require select2/select2 . But the problem is that you only need a couple of files, and a bunch of unnecessary ones are downloaded, plus also in the wrong folders.
Is it possible to do this somehow through composer, so that only the necessary files would be taken and added to the necessary folders?
Answer the question
In order to leave comments, you need to log in
dependencies are downloaded,
why are you afraid of extra files?
If they are needed and enabled , they will work; if not, they won’t work.
well, you can download some of the files simply without a composer, and paste them into your
Composer folders - this is the standard that is described in the composer.json file, all packages are downloaded to the vendor and all dependencies are added there, the composition of the files is regulated by the composition of the package, which is in the repository is ... everything is tough, but you can not use it, or remake the package for yourself and use your own.
1. for one task I needed a video parser,
2. chose this one: https://github.com/ricardofiorani/php-video-url-parser
but it didn't work with Rutube and was missing something exactly me to work with youtube
3. made it fork: https://github.com/Maksclub/php-video-url-parser
4. added my adapter to it
5. made my composer package out of it: https://packagist.org/packages/maksclub/php-video-...
6. already used it in my test task
, in your case, you can clean it up, not add functionality, as in my case
*sorry if the code is not very good - still learning
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question