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 ,
Download composer from: https://getcomposer.org/download/
从以下位置下载作曲家: https : //getcomposer.org/download/
Install the composer on your system and run.
在系统上安装composer并运行。
After installation of composer check on command prompt PHP artisan –version OR PHP –version then after check composer.
安装作曲家后,在命令提示符下检查PHP artisan –version或PHP –version,然后检查作曲家。
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为项目创建项目或目录。
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工匠的服务方式是,
Now, copy this http: URL and run on your browser.
现在,复制此http:URL并在浏览器上运行。
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:
在浏览器上打开本地主机页面:
Now, go to your laravel project,
现在,进入您的laravel项目,
Here, go to the public folder and start your laravel project,
在这里,转到公用文件夹并启动您的laravel项目,
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