在Windows上使用命令行安装Symfony时:
php symfony.phar myapp
我不明白如何使用/配置作曲家:
因此,当我运行composer update
(或verify
)时,我收到了此错误:
"./composer.json" does not contain valid JSON
Parse error on line 1:
当然,当我在有效的JSON中添加一个简单的require时,即
{
"require": {
"twig/twig": "~1.23|~2.0",
}
}
composer删除/ vendors中的所有目录
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing sensio/generator-bundle
- Removing symfony/swiftmailer-bundle
...
文件为空是否正常? 如何使用Composer?