从Windows 10创建Symfony项目错误?

时间:2016-01-30 07:00:08

标签: php json symfony composer-php

目前我已经下载了Symfony 3.0 enter image description here

并配置了环境变量并在c:\ xampp \ htdocs \ symfony中安装了Composer和checked composer.json,它包含symfony的下载版本。

"require": {
        "php": ">=5.5.9",
        "symfony/symfony": "3.0.*",
        "doctrine/orm": "^2.5",
        "doctrine/doctrine-bundle": "^1.6",
        "doctrine/doctrine-cache-bundle": "^1.2",
        "symfony/swiftmailer-bundle": "^2.3",
        "symfony/monolog-bundle": "^2.8",
        "sensio/distribution-bundle": "^5.0",
        "sensio/framework-extra-bundle": "^3.0.2",
        "incenteev/composer-parameter-handler": "^2.0"
    },

我有两个问题: 1.我看过symfony的congradualtin屏幕,我无法访问symfony的窗口 2.当我尝试使用以下方法创建第一个项目时:

c:\xampp\htdocs\Symfony>composer create-project symfony/framework-standard-edition my_project "3.0.*" --stability=dev

并尝试过:

C:\>composer create-project symfony/framework-standard-edition my_project_name "3.0.*"

我收到以下错误:

  [Composer\Downloader\TransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: No connection could
  be made because the target machine actively refused it.


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

任何人都试图解决问题。谢谢大家!

0 个答案:

没有答案