在没有Composer的情况下使用Laravel 5 IlluminateHtml


Use Laravel 5 IlluminateHtml without Composer

好的,我需要在没有composer的情况下使用Illuminate''Html包。

我使用的是Plesk,它默认安装了php5.3。我设法添加了另一个版本的PHP(5.5),使用fastcgi并行运行。这让我安装了Laravel(因为它在5.3中玩得不好)

我终于完成了所有的设置和工作,但现在当我尝试安装Illuminate'Html来访问Form Facade时,我收到了错误消息:

FatalErrorException in compiled.php line 6466:
Class 'illuminate'html'HtmlServiceProvider' not found

我安装了composer,但由于Plesk默认运行PHP 5.3,composer运行默认PHP,所以我得到了以下错误:

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Installation request for illuminate/html 5.0.* -> satisfiable by illuminate/html[v5.0.0].
    - illuminate/html v5.0.0 requires php >=5.4.0 -> your PHP version does not satisfy that requirement.
  Problem 2
    - league/flysystem 1.0.2 requires php >=5.4.0 -> your PHP version does not satisfy that requirement.
    - league/flysystem 1.0.2 requires php >=5.4.0 -> your PHP version does not satisfy that requirement.
    - Installation request for league/flysystem == 1.0.2.0 -> satisfiable by league/flysystem[1.0.2].

Installation failed, reverting ./composer.json to its original content.

我得到的只是一个又一个错误。

如何在不需要使用composer的情况下让Illuminate''HTML工作?我在谷歌上搜索过,我访问的每个页面都告诉我要运行作曲家更新。

我已将以下内容添加到app.php

'providers' => [
...
   'Illuminate'Html'HtmlServiceProvider'

'aliases' => [
...
    'Html' => 'Illuminate'Html'HtmlFacade',
    'Form' => 'Illuminate'Html'FormFacade'

我已经检查了Illuminate''Html是否在服务器上,也就是它,在Vendor目录中。

我还需要做什么?

谢谢,如果我能提供更多信息,请告诉我。

编辑

额外信息:

  • 我无法从5.3直接升级到php5.5,因为plesk没有请允许我这么做。

  • 我不得不使用plesk-php-panda来安装作为FastCGI模块运行的其他php版本

  • PHP 5.3作为apache模块的默认值在服务器上运行。

  • 我可以在同一台服务器上访问php5.5和php5.6。

您可以使用一个标志运行composer来忽略系统需求,例如php版本。

composer update --ignore-platform-reqs

来自作曲家文档

--ignore platform reqs:忽略phphhvmlib-*ext-*要求,并强制安装,即使本地计算机不满足这些要求。