使用作曲家找不到 CodeIgniter Stomp

CodeIgniter Stomp not found using composer

所以...我将 codeigniter3 与 PHP7.0 一起使用,因为这是与 stomp v2.0.0 @pecl 兼容的版本...一切都应该按顺序进行。

我设置在application/config.php

$config['composer_autoload'] = TRUE;

在composer.json

{
    "name": "gritnet/gms",
    "description": "GMS is a basic content management system based on CodeIgniter with the sole purpose of helping in the development of small to medium custom websites",
    "type": "project",
    "require": {
        "rmccue/requests": "^1.7",
    "stomp-php/stomp-php": "4.*"
    },
    "authors": [
        {
            "name": "GRITNET LIMITED",
            "email": "office@gritnet.uk"
        }
    ]
}

在 运行 命令上 composer install 我得到

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files

在 运行 命令上 composer update 我得到

Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

当我尝试使用通过 composer 安装的库连接到服务器时,出现以下错误:

An uncaught Exception was encountered

Type: Error

Message: Call to undefined method Stomp::connect()

Filename: /home/gritnet/public_html/gms/application/controllers/Homepage.php

Line Number: 11

第 11 行是

        Line 10: $stomp = new Stomp('tcp://localhost:61613');
        Line 11: $stomp->connect();

知道为什么不加载 class 吗?

所有文件都在application/vendor

忘记将 stomp 扩展加载到 php.ini 文件@cPanel。 扩展可以在这里找到:https://pecl.php.net/package/stomp