官术网_书友最值得收藏!

Installing Composer package manager

Laravel uses Composer, a dependency manager for PHP, very similar to Node Package Manager (NPM) for Node.js projects, PIP for Python, and Bundler for Ruby. Let's see what the official documentation says about it: 

"A Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you."

So, let's install Composer, as follows:

Go to https://getcomposer.org/download/ and follow the instructions for your platform.

You can get more information at  https://getcomposer.org/doc/00-intro.md.

Note that you can install Composer on your machine locally or globally; don't worry about it right now. Choose what is easiest for you.

All PHP projects that use Composer have a file called composer.json at the root project, which looks similar to the following:

{
"require": {
"laravel/framework": "5.*.*",
}
}

This is also very similar to the package.json file on Node.js and Angular applications, as we will see later in this book.

Here's a helpful link about the basic commands:  https://getcomposer.org/doc/01-basic-usage.md
主站蜘蛛池模板: 大埔县| 大新县| 米泉市| 成安县| 莱芜市| 元氏县| 嘉鱼县| 宾川县| 安陆市| 永寿县| 垣曲县| 江口县| 梁平县| 西畴县| 康马县| 阿拉善左旗| 新密市| 绍兴市| 兴城市| 乐至县| 岫岩| 满洲里市| 商河县| 博客| 平舆县| 武功县| 惠水县| 大宁县| 密山市| 普兰店市| 长岛县| 嘉祥县| 商洛市| 北安市| 璧山县| 馆陶县| 深圳市| 英吉沙县| 鄂尔多斯市| 阳原县| 昆明市|