win7安装laravel

使用Packagist 镜像

建立一个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.*"
    },
    "config": {
        "preferred-install": "dist"
    },
    "repositories": {
        "packagist": {
            "type": "composer",
            "url": "https://packagist.phpcomposer.com"
        }
    }
}

通过 Composer 在命令行运行 create-project 命令来安装 Laravel:

composer create-project --prefer-dist laravel/laravel blog

这样就安装了一个blog项目

posted @ 2017-06-27 22:37  屌丝IT男  阅读(574)  评论(0编辑  收藏  举报