php 版本 7.2.34
webman 版本:
workerman/webman-framework v1.5.11
workerman/workerman v4.1.13
安裝數(shù)據(jù)庫相關(guān)庫:
composer require -W illuminate/database illuminate/pagination illuminate/events symfony/var-dumper
安裝的庫:
illuminate/container v7.30.6 The Illuminate Container package.
illuminate/contracts v7.30.6 The Illuminate Contracts package.
illuminate/database v7.30.6 The Illuminate Database package.
illuminate/events v7.30.6 The Illuminate Events package.
illuminate/pagination v7.30.6 The Illuminate Pagination package.
illuminate/support v7.30.6 The Illuminate Support package.
運行時, 出現(xiàn)錯誤:
Error: Class 'Illuminate\Pagination\CursorPaginator' not found in /xxxxxxx/vendor/workerman/webman-framework/src/support/bootstrap/LaravelDb.php:116
illuminate/pagination v10 就存在CursorPaginator 這個類, 但是 php7.2 無法安裝 v10 版本.
你好歹看下 illuminate/pagination v10版本php版本要求啊 ??
你要不自己看看 webman 的composer.json哪里有寫 illuminate/pagination v10 ?
https://github.com/walkor/webman/blob/master/composer.json
php7.2 的 webman 卻要求 illuminate/pagination v10 版本, 但是 php7.2 只能安裝 v7 版本, v10 版本是我用php8.1 安裝得出, 但是只能用 php7.2
webman-framework v1.5.9 沒你說的這個問題
webman-framework v1.5.10 及以上才更新的LaravelDb.php,需要Illuminate\Pagination\CursorPaginator和Illuminate\Pagination\Cursor
奇怪, 兩次 composer show 的結(jié)果不同, 之前看確實 v1.5.9, 剛才查看一次命令是 v1.5.11
workerman/webman-framework v1.5.11
workerman/workerman v4.1.13
php72 ./composer create-project workerman/webman
Creating a "workerman/webman" project at "./webman"
Installing workerman/webman (v1.5.4)
support\Plugin::install
support\Plugin::install
support\Plugin::install
support\Plugin::install
support\Plugin::install
support\Plugin::install
Create start.php
Create windows.php
Create support/bootstrap.php
Create support/helpers.php
14 package suggestions were added by new dependencies, usecomposer suggest
to see details.
Generating autoload files
2 packages you are using are looking for funding.
Use thecomposer fund
command to find out more!
No security vulnerability advisories found
php72 ../composer show
monolog/monolog 2.9.2 Sends your logs to files, sockets, inboxes, databases and various web services
nikic/fast-route v1.3.0 Fast request router for PHP
psr/container 2.0.1 Common Container Interface (PHP FIG PSR-11)
psr/log 1.1.4 Common interface for logging libraries
workerman/webman-framework v1.5.11 High performance HTTP Service Framework.
workerman/workerman v4.1.13 An asynchronous event driven PHP framework for easily building fast, scalable network applications.