> For the complete documentation index, see [llms.txt](https://liseen315.gitbook.io/laravel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liseen315.gitbook.io/laravel/chuang-jian-laravel-kai-fa-huan-jing/chuang-jian-yi-ge-xin-de-laravel-xiang-mu/shi-yong-laravel-an-zhuang-gong-ju-an-zhuang-laravel.md).

# 使用Laravel安装工具安装Laravel

如果你已经全局安装了Composer,可以使用如下简单的命令安装Laravel

```bash
composer global require "laravel/installer"
```

一旦Laravel安装工具安装完毕,创建Laravel项目是十分简单的,只需要在命令内输入下面命令

```bash
laravel new projectName
```

这条命令会在以{projectname}为名字在你当前目录下创建一个子文件夹,并且在此文件内安装一个裸Larvavel项目


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://liseen315.gitbook.io/laravel/chuang-jian-laravel-kai-fa-huan-jing/chuang-jian-yi-ge-xin-de-laravel-xiang-mu/shi-yong-laravel-an-zhuang-gong-ju-an-zhuang-laravel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
