{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.1.*"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "stable"
}
I'am executing this in my windows console:
php composer.json create-project test2
I just get the above string and nothing happens? how to properly run the composer.json to create a project?
You must download composer:
curl -sS https://getcomposer.org/installer | php
or
php -r "readfile('https://getcomposer.org/installer');" | php
and next you should run if you have composer.json file:
composer.phar install
or if you want create new project
composer.phar create-project
当 composer 命令(例如使用composer --version
测试)已存在于您的终端中时,在具有composer.json
的同一文件夹中使用composer update
。
i used 'composer install' and it's working good
composer install
or
php composer install
The answer is don't make it so difficult. Why do I need composer, just let me download the files and upload them to my server. Otherwise, I must first study to get a degree in composer rocket science. My time isn't valuable so I like to waste it trying to figure stuff out instead of doing the work for my client.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.