php框架laravel_安装Laravel PHP框架

php框架laravel

In this tutorial, we are going to install laravel framework and composer, For installation of laravel, the composer is installed on your system because of laravel use composer.

在本教程中,我们要安装laravel框架和作曲家 ,对于安装laravel的作曲家安装在系统上,因为laravel使用的作曲家。

A composer is a tool that includes all the dependencies which is noted in composer.json file and libraries. Composer helps to install all the other libraries which will be used in the application. It allows us to create a project.

composer是一种工具,其中包含composer.json文件和库中指出的所有依赖项。 Composer帮助安装将在应用程序中使用的所有其他库。 它允许我们创建一个项目。

Similarly, in laravel Artisans is a command-line interface which includes a set of command which help in building a web application.

同样,在laravel中, Artisans是一个命令行界面,其中包括一组有助于构建Web应用程序的命令。

Use the following steps to install laravel on your system,

使用以下步骤在系统上安装laravel

  1. Download composer from: https://getcomposer.org/download/

    从以下位置下载作曲家: https//getcomposer.org/download/

    Laravel Installation step 1
  2. Install the composer on your system and run.

    在系统上安装composer并运行。

  3. After installation of composer check on command prompt PHP artisan –version OR PHP –version then after check composer.

    安装作曲家后,在命令提示符下检查PHP artisan –versionPHP –version,然后检查作曲家。

    Laravel Installation step 2

    Laravel Installation step 3
  4. Now, create a project or directory for your project using laravel in any place wherever you want to create your project on your system.

    现在,在想要在系统上创建项目的任何地方,使用laravel为项目创建项目或目录。

    Laravel Installation step 4
  5. Then after open that folder see your project folder is created Like: I have created my project under

    然后在打开该文件夹后,看到您的项目文件夹已创建,就像:我在下面创建了我的项目

    C:\xampp\htdocs\restaurent_management

    C:\ xampp \ htdocs \ restaurent_management

    And open the command prompt on that page and write

    并打开该页面上的命令提示符并编写

    PHP artisan serve like,

    PHP工匠的服务方式是,

    Laravel Installation step 5
  6. Now, copy this http: URL and run on your browser.

    现在,复制此http:URL并在浏览器上运行。

    Laravel Installation step 6

You can also use laravel in your project by using xampp and wamp server for this:

您还可以通过使用xampp和wamp服务器在项目中使用laravel:

After installing Xampp server from: https://www.apachefriends.org/index.html wamp server from: https://sourceforge.net/projects/wampserver/.

从以下位置安装Xampp服务器: https: //www.apachefriends.org/index.html wamp服务器: https ://sourceforge.net/projects/wampserver/。

  • Create a laravel project under C:\xampp\htdocs

    C:\ xampp \ htdocs下创建一个laravel项目

  • Open localhost page on your browser:

    在浏览器上打开本地主机页面:

    Laravel Installation step 7
  • Now, go to your laravel project,

    现在,进入您的laravel项目,

    Laravel Installation step 8

Here, go to the public folder and start your laravel project,

在这里,转到公用文件夹并启动您的laravel项目,

Laravel Installation step 9

Conclusion:

结论:

In this article, we have learnt about the installation of laravel with composer and to create a project. We will know more about it in the upcoming article. Have a nice day! Happy Learning!

在本文中,我们了解了如何使用composer安装laravel并创建一个项目。 我们将在下一篇文章中了解更多信息。 祝你今天愉快! 学习愉快!

翻译自: https://www.includehelp.com/laravel/installation-of-laravel-php-framework.aspx

php框架laravel

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值