首页 > 代码库 > win7安装laravel

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项目

win7安装laravel