1. 程式人生 > >win7安裝laravel

win7安裝laravel

keywords install sta mit 通過 word req win7安裝 epo

使用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