在小项目上使用composer
I want to use composer on my small Php-project (pure PHP, no frameworks), and i want to get some libraries (jquery, bootstrap) by composer, when i get jquery, composer pulling some symfony and kriswallsmith dependencies, they are nessaserry and I just need to ignore them?
Links :
https://packagist.org/packages/twbs/bootstrap
https://packagist.org/packages/components/jquery
Composer:
{
"require" : {
"components/jquery": "dev-master",
"twbs/bootstrap": "3.2.*@dev"
}
}
我想在我的小型Php项目(纯PHP,没有框架)上使用composer,我想得到 一些库(jquery,bootstrap)由作曲家,当我得到jquery,作曲家拉一些symfony和kriswallsmith依赖,他们是nessaserry我只需要忽略它们? p>
链接: p >
Composer is a PHP dependency manager. It is created for one specific goal: Management of PHP packages.
You should not use Composer to include any package from another language, it isn't created for it and it is really not good in it. For Javascript/HTML/CSS packages, you should take a look at Bower.
Btw, none of the packages you named in your post are installed because of the packages you listed in your code. Use
composer depends ...
(where...
is the package name) to see why there were included.