laravel 环境安装

WBOY
Release: 2016-06-23 13:31:14
Original
879 people have browsed it

laravel 环境安装

composer我我认为是php里面一个比较特别的东西,比如我们php安装扩展模块什么的都是编译一个.so文件,然后再加载到php里面,而laravel 用了一个叫Composer的东西来解决依赖问题。

1. Composer安装

很简单下载下来放到环境变量里面就行了

curl -sS https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composer
Copy after login

2. composer的使用

用composer创建laravel项目

# composer create-project laravel/laravel test......# cd test# composer installLoading composer repositories with package informationInstalling dependencies (including require-dev) from lock fileNothing to install or updateGenerating autoload filesGenerating optimized class loader
Copy after login

有点类似于python 里面的pip install的意思。用起来也很方便。

版权声明:本文为博主原创文章,未经博主允许不得转载。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template