中文 | English
基于 hyperf 实现的基础 channel 包、提供最基本的 pull
push
subscribe
publish
功能
内置实现了 orm
redi
rabbitmq
驱动
composer require mine/next-core-x
// app/Process/ImProcess.php
use Mine\NextCoreX\Queue;
use Hyperf\WebSocketServer\Sender;
class ImProcess extends AbstractProcess
{
public function __construct(
private readonly Queue $queue,
private readonly Sender $sender
) {}
public function handle()
{
$data = Queue::pull('user_messages');
foreach ($data as $item) {
}
}
}