我可以不使用Composer安装Laravel? [英] Can I Install Laravel without using Composer?

查看:570
本文介绍了我可以不使用Composer安装Laravel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在任何网络服务器上安装或使用 Laravel PHP框架,而无需使用 Composer (PHP包/依赖项管理器)每次?

I'd like to know if I can install or use the Laravel PHP framework on any webserver without using Composer (PHP package/dependency manager) every time?


  • 我正在学习PHP和框架,我正在使用基于Laravel的CMS来练习。

  • 我希望能够将它放在任何web服务器上,而不必使用composer every

如果我第一次(本地)运行 $ composer install ,那么所有的依赖都应该存在,正确吗?

If I run $ composer install the first time (locally), then all the dependencies should be present, correct?

然后,我应该能够把它放到任何服务器与所有的文件(包括供应商目录)?

Then, I should be able to drop it onto any server with all of the files (including the vendor directory)?

推荐答案

如果你真的想做,你可以做Composer手动完成的所有工作,但绝对不应该。安装Composer很容易,只需要获取 composer.phar 文件并在其上运行命令即可。

If you really wanted to, you could do all the work that Composer does manually, but you definitely should not. Installing Composer is easy, it's just a matter of getting the composer.phar file and running commands on it.

在您运行 composer install composer update 之后,您不需要在您的服务器上以及本地运行Composer项目将拥有所有可用的依赖项,您只需将其直接上传到您的服务器。

You do not need to run Composer on your server as well as locally, once you run composer install or composer update your project will have all it's dependencies available and you can just upload it straight to your server.

这篇关于我可以不使用Composer安装Laravel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆