简体   繁体   English

在没有 Composer 的情况下安装 Laravel

[英]Install Laravel without Composer

I'm not allowed to install Composer on my server at work.我在工作时不允许在我的服务器上安装 Composer。 Bureaucracy!官僚! Also, it's not connected to the internet.此外,它没有连接到互联网。 It's a company intranet server and I'm not a sys admin for it.这是一个公司内部网服务器,我不是它的系统管理员。

Am I going to experience high levels of difficulty installing and running Laravel without Composer?在没有 Composer 的情况下,我是否会遇到安装和运行 Laravel 的高难度? Should I use another Framework?我应该使用另一个框架吗?

I'm quite a basic PHP programmer without too much command line experience to be honest.老实说,我是一个非常基本的 PHP 程序员,没有太多的命令行经验。 I'm used to having everything I need for a project contained in one directory - like CodeIgniter for example.我习惯于将项目所需的一切都包含在一个目录中——例如 CodeIgniter。

This article is suggesting that there are quite a few required dependencies. 这篇文章暗示有很多必需的依赖项。 Will my Laravel project just fail to run properly without them?如果没有它们,我的 Laravel 项目会无法正常运行吗?

-- UPDATE -- - 更新 -

If by chance, there is a way to do it without Composer, then please tell me how I can do this.如果碰巧,有一种方法可以在没有 Composer 的情况下做到这一点,那么请告诉我如何做到这一点。 I downloaded the source files for Laravel from GitHub (like you would do with CodeIgniter) but I get errors when I try and view it on a browser;我从 GitHub 下载了 Laravel 的源文件(就像你用 CodeIgniter 做的那样),但是当我尝试在浏览器上查看它时出现错误;

Warning: require(/var/www/html/test/laravel/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/test/laravel/bootstrap/autoload.php on line 17

Fatal error: require(): Failed opening required '/var/www/html/test/laravel/bootstrap/../vendor/autoload.php' (include_path='.:/php/includes:/var/www/html/php/includes:/jpa/release/jpa/includes:/usr/share/pear:/usr/share/php/phpmailer:/apache/htdocs/applications/surveys/Includes:/var/lib/ZF1/library') in /var/www/html/test/laravel/bootstrap/autoload.php on line 17

I guess one way would be to run composer on another machine(maybe at home).我想一种方法是在另一台机器上运行作曲家(也许在家里)。 Then just take all the files that composer downloads and move it to your work machine.然后只需将 Composer 下载的所有文件移动到您的工作机器上即可。

Installing it manually is a lot of work.手动安装它是很多工作。 You have to do all the stuff that composer does in the background effectively.你必须有效地完成作曲家在后台所做的所有事情。 Following all the dependencies will be super hard.遵循所有依赖项将非常困难。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM