laravel安装笔记

下载composer

curl -s http://getcomposer.org/installer | php

 

composer路径添加到path
mvim ~/.profile

export PATH=/Applications/MAMP/bin/php/php5.6.2/bin:~/php:$PATH

 

composer默认太慢,添加中国镜像,mvim ~/.composer/config.json

{
            "repositories": [
                {"type": "composer", "url": "http://pkg.phpcomposer.com/repo/packagist/"},
                {"packagist": false}
            ]
        }

 

用composer下载安装工程

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

 

你可能感兴趣的:(laravel)