我想做一整套的Laravel的讲解,所以这里还是将Laravel在windows的安装过程讲解一下吧.
linux下的我就不说了.
首先我们要做的就是安装我们的Composer 包管理器.
到我们的官方网站上面去.
https://getcomposer.org/Composer-Setup.exe
这个就是我们在windows上的安装包.一路next即可安装了.
同时我们也可以通过windows命令行工具进行安装.
<code class=" language-bash">php -r "readfile('https://getcomposer.org/installer');" | php</code>
这里要注意一点,如果你的php没有开启openssl拓展的话,最好开启.或者尝试将https改为http进行尝试.
当然前提是你的电脑已经安装过php了,比如安装过xampp或者wamp之类的.只要在命令行里面输入php不报错即可.
安装完成之后,我们试一下.直接在命令行里面输入composer,
如果出现了composer的命令行帮助,则安装成功.
我们为什么要安装composer 包管理器呢.因为在官方网站下载的laravel是不带vender目录的.
其实vender中存放的就是我们laravel框架的依赖包 laravel/framework.这些东西都是可以通过到我们的
packagelist网站上进行下载的.
下面我们着手来安装laravel.安装laravel的方法有很多.可以通过git clone下载
我们也可以到laravel的官方网站上下载.或者我们可以直接到github上面搜索laravel开源代码,然后点击下载zip包,解压也是可以的.这里我就直接到官方网站上面下载了.
下载完成之后,解压到我们服务器的更目录下.
我使用的是xampp.所以我将laravel文件夹放到我们的htdoc目录下.
然后通过命令行工具进入到laravel目录中.我的是: T:\xampp\htdoc\laravel
然后输入命令 composer install
这时就可以自动进行我们vender的安装了.关于composer,我在之前的一篇博文中有介绍.
composer --php包管理工具
安装完成之后,我们就可以直接在浏览器中输入
localhost/laravel/public 即可看到我们laravel的欢迎界面了.
好吧.今天有点累了.就写到这里吧.
Whatever is worth doing is worth doing well.
Best Wishes.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
