当前位置:网站首页>怎么安装 Laravel
怎么安装 Laravel
2022-06-21 16:31:00 【健康搬砖人】
怎么安装 Laravel
Laravel是PHP的一个Web框架,本次安装的版本是7,需要的PHP版本 >= 7.2.5
1.安装composer
安装Laravel之前,需要安装composer。
Laravel 框架使用 Composer(PHP包管理工具,参考 Composer 中文文档)来管理代码依赖性。 首先,你需要下载 Composer 的 PHAR 打包文件( composer.phar ),下载完成后把它放在项目目录下或者放到 usr/local/bin 目录下以便在系统中全局调用。在Windows操作系统中,你可以使用 Composer 的Windows安装工具。
点击此处,下载Composer。
- 打开下载的exe文件,直接点next,到了下面这一步,找到自己的PHP目录以及找到相对应的php.exe,如下图所示
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Ep3wpnme-1588345669751)(1.jpg)]](/img/87/fc7c012c07e72915fb6b8f942277a0.png)
然后一直点Next即可安装成功,这个安装可能会久一点。
- 安装完毕后,cmd下输入composer,如下图所示
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-8HCPVJWY-1588345669759)(2.png)]](/img/d4/90e97c04bb58686df3076f1158cddf.png)
2.安装Laravel
cmd直接输入
composer create-project laravel/laravel --prefer-dist
如果上面的指令下载不了,可能是因为国内有墙的存在导致连接超时了
我们可以将composer资源获取地址改为国内的镜像,如下命令(推荐使用阿里云的镜像)
composer config -g repo.packagist composer https://packagist.phpcomposer.com
或
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer
然后重新执行下载的命令
安装完成。
边栏推荐
- Xticks function in MATLAB
- Deeply understand the attention mechanism of map
- 我被变相降薪了
- 3DE motion contour data modification
- Move Protocol Beta测试版稳定,临时决定奖池规模再扩大
- 主动学习(Active Learning) 概述、策略和不确定性度量
- 鱼佬:电信客户流失预测赛方案!
- LeetCode_ String_ Simple_ 387. first unique character in string
- EtherCAT igh 'Fatal Sync Error'——0x002C,0x001A
- Iso8191 test is mentioned in as 3744.1. Are the two tests the same?
猜你喜欢

Stack cognition -- basic use of reverse IDA tools

One trick: let logs help you make decisions through Yanrong SaaS data service platform +elk

EtherCAT igh 'Fatal Sync Error'——0x002C,0x001A

Stack awareness - stack overflow instance (ret2libc)
![[dataset] |bigdetection](/img/34/245241bcf61dec828a999c751581ca.png)
[dataset] |bigdetection

Pingcap was selected as the "voice of customers" of Gartner cloud database in 2022, and won the highest score of "outstanding performer"

Paper notes ACL 2022 unified structure generation for universal information extraction

EtherCAT igh 'Fatal Sync Error'——0x002C,0x001A

是关于Linux中一步建立yum源缓存问题

C language DLL Dynamic Link Library
随机推荐
Compose programming idea
National administrative division
海恩法则和费曼学习法
Win32com operation Excel
大型网站技术架构 | 信息加密技术及密匙安全管理
数字经济王宁教你如何正确地选择短期投资
潤邁德醫療通過上市聆訊:預計虧損將增加,霍雲飛兄弟持股約33%
How to write technical documents software engineering at Google
POSIX create terminate thread
Nacos registry ----- built and used from 0
The source code of the online live broadcast system enables you to request the list interface and touch the bottom page to load
Paper notes ACL 2022 unified structure generation for universal information extraction
Jetpack compose phase
Server socket program
Software test architecture learning and construction (14) - overview of software test and development model of test foundation
Use of list
What is the difference between IEC62133 and EN62133? Which items are mainly tested?
堆栈认知——逆向IDA工具的基本使用
3DE 三维模型视图看不到怎么调整
从需求到开源,如何做到刮目相看?