user3350814 user3350814 - 1 year ago 181
PHP Question

How to run composer.json?

"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.1.*"
"autoload": {
"classmap": [
"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?

Answer Source

You must download composer:

curl -sS | php


php -r "readfile('');" | 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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download