Any command with Artisan is not working [closed]

1

I tried to install a dependency: link . However, at the end of the installation, an error message appeared:

Installation failed, reverting ./composer.json to its original content.

Now no command php artisan algo works, this error displays:

[Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected ')'

I also tried to remove the vendor folder and install again. Here is another error:

Generating autoload files
> Illuminate\Foundation\ComposerScripts::postInstall
> php artisan optimize


  [Symfony\Component\Debug\Exception\FatalErrorException]
  syntax error, unexpected ')'


Script php artisan optimize handling the post-install-cmd event returned with error code 255

My composer.json

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "symfony/css-selector": "2.8.*|3.0.*",
        "symfony/dom-crawler": "2.8.*|3.0.*"
    },
    "autoload": {
        "classmap": [
            "database",
            "app/Libraries/Classes",
            "app/Libraries/Classes/HTML",
            "app/Libraries/Classes/Script"
        ],
        "psr-4": {
            "App\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "Illuminate\Foundation\ComposerScripts::postInstall",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "Illuminate\Foundation\ComposerScripts::postUpdate",
            "php artisan optimize"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}
    
asked by anonymous 28.09.2016 / 19:43

0 answers