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

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
主站蜘蛛池模板: 凤凰县| 宜黄县| 西贡区| 湘阴县| 西乌珠穆沁旗| 武宁县| 新民市| 株洲县| 清水河县| 宜君县| 合川市| 长春市| 綦江县| 且末县| 莒南县| 剑川县| 神池县| 灌南县| 彭州市| 介休市| 桂平市| 古丈县| 西昌市| 报价| 磐安县| 涡阳县| 浠水县| 大庆市| 黄山市| 孙吴县| 嘉祥县| 沂水县| 抚松县| 仪征市| 平谷区| 景洪市| 吉首市| 杨浦区| 九龙坡区| 枝江市| 宿松县|