我可以在不使用 Composer 的情况下安装 Laravel 吗?

Can I Install Laravel without using Composer?(我可以在不使用 Composer 的情况下安装 Laravel 吗?)
本文介绍了我可以在不使用 Composer 的情况下安装 Laravel 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

我希望能够将我的应用程序放到任何 Web 服务器上(例如无法访问命令行的共享服务器).

I would like to be able to drop my app on to any web server (like a shared server without access to the command line).

如果我第一次(本地)运行 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,一旦你运行 composer installcomposer update 你的项目将拥有所有可用的依赖项并且你可以直接上传到你的服务器.

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 its dependencies available and you can just upload it straight to your server.

这篇关于我可以在不使用 Composer 的情况下安装 Laravel 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Convert JSON integers and floats to strings(将JSON整数和浮点数转换为字符串)
in php how do I use preg replace to turn a url into a tinyurl(在php中,如何使用preg替换将URL转换为TinyURL)
all day appointment for ics calendar file wont work(ICS日历文件的全天约会不起作用)
trim function is giving unexpected values php(Trim函数提供了意外的值php)
Basic PDO connection to MySQL(到MySQL的基本PDO连接)
PHP number_format returns 1.00(Php number_Format返回1.00)