From 8aed3e5aacf7790859044d5791f195698a91f98f Mon Sep 17 00:00:00 2001 From: ASUS <515617283@qq.com> Date: Tue, 14 Oct 2025 09:48:33 +0800 Subject: [PATCH] rabb --- app/command/RabbOrderPrint.php | 15 +- app/command/RabbProductUpdate.php | 14 +- app/common/{ => model}/MqLog.php | 3 +- app/common/{ => model}/OrderInfo.php | 1 - app/common/{ => model}/RabbitMqConfig.php | 2 +- composer.json | 2 +- composer.lock | 674 ++++++++++++---------- 7 files changed, 395 insertions(+), 316 deletions(-) rename app/common/{ => model}/MqLog.php (76%) rename app/common/{ => model}/OrderInfo.php (98%) rename app/common/{ => model}/RabbitMqConfig.php (88%) diff --git a/app/command/RabbOrderPrint.php b/app/command/RabbOrderPrint.php index 29240f7..0ec76de 100644 --- a/app/command/RabbOrderPrint.php +++ b/app/command/RabbOrderPrint.php @@ -7,6 +7,7 @@ use app\common\model\OrderInfo; use app\common\model\RabbitMqConfig; use ba\Random; use PhpAmqpLib\Connection\AMQPStreamConnection; +use support\think\Db; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; @@ -35,11 +36,13 @@ class RabbOrderPrint extends Command */ protected function execute(InputInterface $input, OutputInterface $output): int { + $host = RabbitMqConfig::$host; $port = RabbitMqConfig::$port; $user = RabbitMqConfig::$user; $password = RabbitMqConfig::$password; $queue = RabbitMqConfig::$queue_t . '-order.print.queue'; + // 防止空闲时间断线必须设置心跳 $connection = new AMQPStreamConnection($host, $port, $user, $password, '/', @@ -58,10 +61,10 @@ class RabbOrderPrint extends Command 'x-message-ttl' => ['I', 180000] ]); - $callback = function ($msg){ + $callback = function ($msg) use ($queue){ $date_time = date('Y-m-d H:i:s'); $data = $msg->body; - Log::write('收到消息--->' . $data . '--->' . $date_time . "\n"); + Log::info('收到消息--->' . $data . '--->' . $date_time . "\n"); // 如果是数字。则打印订单 $is_log = false; $curl_error = ''; @@ -76,7 +79,7 @@ class RabbOrderPrint extends Command $order_id = $data; } print_r($order_id . "\r\n"); - $order = OrderInfo::where(['id' => $order_id])->find(); + $order = Db::table('tb_order_info')->where(['id' => $order_id])->find(); if($order) { $rand = 'cashier_order' . Random::build(); $send_id = 'cashier_'. $order['shop_id']; @@ -105,14 +108,14 @@ class RabbOrderPrint extends Command $curl_error = 'Curl error: ' . curl_error($ch); } curl_close($ch); - Log::write('内部通讯结果(订单打印)--->' . $output . '通讯ID--->cashier_' .$order['shop_id']. '---' . date('Y-m-d H:i:s') . "\n"); + Log::info('内部通讯结果(订单打印)--->' . $output . '通讯ID--->cashier_' .$order['shop_id']. '---' . date('Y-m-d H:i:s') . "\n"); }else { $curl_error = 'order Data is empty'; $is_log = true; } if($is_log) { - MqLog::create([ - 'queue' => '', + Db::table('tb_mq_log')->insert([ + 'queue' => $queue, 'msg' => $data, 'type' => 'orderPrint', 'plat' => 'Cashier', diff --git a/app/command/RabbProductUpdate.php b/app/command/RabbProductUpdate.php index 8d25e8f..9e3495c 100644 --- a/app/command/RabbProductUpdate.php +++ b/app/command/RabbProductUpdate.php @@ -6,12 +6,13 @@ use app\common\model\MqLog; use app\common\model\RabbitMqConfig; use ba\Random; use PhpAmqpLib\Connection\AMQPStreamConnection; +use support\think\Db; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Output\OutputInterface; -use think\facade\Log; +use support\Log; class RabbProductUpdate extends Command @@ -57,10 +58,11 @@ class RabbProductUpdate extends Command // 'x-message-ttl' => ['I', 180000] ]); - $callback = function ($msg){ + $callback = function ($msg) use ($queue){ $date_time = date('Y-m-d H:i:s'); $data = $msg->body; - Log::write('收到商品更新消息--->' . $data . '--->' . $date_time . "\n"); + print_r('收到商品更新消息--->' . $data . '--->' . $date_time . "\n"); + Log::info('收到商品更新消息--->' . $data . '--->' . $date_time . "\n"); // 如果是数字。则打印订单 $is_log = false; $curl_error = ''; @@ -91,10 +93,10 @@ class RabbProductUpdate extends Command $curl_error = 'Curl error: ' . curl_error($ch); } curl_close($ch); - Log::write('内部通讯结果(商品更新)--->' . $output . '通讯ID--->shop_id-->' .$send_id. '---' . date('Y-m-d H:i:s') . "\n"); + Log::info('内部通讯结果(商品更新)--->' . $output . '通讯ID--->shop_id-->' .$send_id. '---' . date('Y-m-d H:i:s') . "\n"); if($is_log) { - MqLog::create([ - 'queue' => '', + Db::table('tb_mq_log')->insert([ + 'queue' => $queue, 'msg' => $data, 'type' => 'product_update', 'plat' => 'product', diff --git a/app/common/MqLog.php b/app/common/model/MqLog.php similarity index 76% rename from app/common/MqLog.php rename to app/common/model/MqLog.php index e3232a5..cb0b31b 100644 --- a/app/common/MqLog.php +++ b/app/common/model/MqLog.php @@ -2,7 +2,6 @@ namespace app\common\model; -use ba\Random; use think\Model; /** @@ -10,5 +9,5 @@ use think\Model; */ class MqLog extends Model { - + protected $prefix = 'tb_'; } \ No newline at end of file diff --git a/app/common/OrderInfo.php b/app/common/model/OrderInfo.php similarity index 98% rename from app/common/OrderInfo.php rename to app/common/model/OrderInfo.php index 443d9ca..016d5c3 100644 --- a/app/common/OrderInfo.php +++ b/app/common/model/OrderInfo.php @@ -9,5 +9,4 @@ use think\Model; */ class OrderInfo extends Model { - } \ No newline at end of file diff --git a/app/common/RabbitMqConfig.php b/app/common/model/RabbitMqConfig.php similarity index 88% rename from app/common/RabbitMqConfig.php rename to app/common/model/RabbitMqConfig.php index 7654705..badb5e0 100644 --- a/app/common/RabbitMqConfig.php +++ b/app/common/model/RabbitMqConfig.php @@ -15,5 +15,5 @@ class RabbitMqConfig extends Model public static $user = 'chaozg'; public static $password = 'chaozg123'; - public static $queue_t = 'prod'; + public static $queue_t = 'dev'; } \ No newline at end of file diff --git a/composer.json b/composer.json index 78ed9f0..c661d02 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "alibabacloud/dysmsapi-20170525": "^3.1", "webman/gateway-worker": "^1.0", "webman/console": "^2.1", - "php-amqplib/php-amqplib": "^2.8" + "php-amqplib/php-amqplib": "^3.6" }, "suggest": { "ext-event": "For better performance. " diff --git a/composer.lock b/composer.lock index 731d325..7bd7559 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d1ae83f79dde128e3114d5e4f511a6f5", + "content-hash": "d61f7eb84a5a68f77a4c61eefda442a5", "packages": [ { "name": "adbario/php-dot-notation", @@ -152,17 +152,17 @@ "time": "2025-04-18T09:09:46+00:00" }, { - "name": "alibabacloud/darabonba-openapi", - "version": "0.2.17", + "name": "alibabacloud/darabonba", + "version": "v1.0.2", "source": { "type": "git", - "url": "https://github.com/alibabacloud-sdk-php/darabonba-openapi.git", - "reference": "051cd22db3da16ab7d0110feb3fc45dd0f999f92" + "url": "https://github.com/alibabacloud-sdk-php/darabonba.git", + "reference": "ccd9e9f096e0449d6cc9c20d1d2e462f49fd799c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/alibabacloud-sdk-php/darabonba-openapi/zipball/051cd22db3da16ab7d0110feb3fc45dd0f999f92", - "reference": "051cd22db3da16ab7d0110feb3fc45dd0f999f92", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/darabonba/zipball/ccd9e9f096e0449d6cc9c20d1d2e462f49fd799c", + "reference": "ccd9e9f096e0449d6cc9c20d1d2e462f49fd799c", "shasum": "", "mirrors": [ { @@ -172,17 +172,31 @@ ] }, "require": { - "alibabacloud/credentials": "^1.2.2", - "alibabacloud/gateway-spi": "^1", - "alibabacloud/openapi-util": "^0.1.10|^0.2.1", - "alibabacloud/tea-utils": "^0.2.21", - "alibabacloud/tea-xml": "^0.2", - "php": ">5.5" + "adbario/php-dot-notation": "^2.4", + "alibabacloud/tea": "^3.2", + "ext-curl": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-simplexml": "*", + "ext-xmlwriter": "*", + "guzzlehttp/guzzle": "^6.3|^7.0", + "php": ">=5.5", + "psr/http-message": "^0.11.0|^1.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35|^5.4.3|^9.3", + "symfony/dotenv": "^3.4", + "symfony/var-dumper": "^3.4" + }, + "suggest": { + "ext-sockets": "To use client-side monitoring" }, "type": "library", "autoload": { "psr-4": { - "Darabonba\\OpenApi\\": "src" + "AlibabaCloud\\Dara\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -192,28 +206,36 @@ "authors": [ { "name": "Alibaba Cloud SDK", - "email": "sdk-team@alibabacloud.com" + "email": "sdk-team@alibabacloud.com", + "homepage": "http://www.alibabacloud.com" } ], - "description": "Alibaba Cloud OpenApi Client", + "description": "Client of Darabonba for PHP", + "homepage": "https://www.alibabacloud.com/", + "keywords": [ + "alibabacloud", + "client", + "cloud", + "tea" + ], "support": { - "issues": "https://github.com/alibabacloud-sdk-php/darabonba-openapi/issues", - "source": "https://github.com/alibabacloud-sdk-php/darabonba-openapi/tree/0.2.17" + "issues": "https://github.com/aliyun/tea-php/issues", + "source": "https://github.com/aliyun/tea-php" }, - "time": "2025-07-04T09:26:04+00:00" + "time": "2025-07-30T08:40:27+00:00" }, { "name": "alibabacloud/dysmsapi-20170525", - "version": "3.1.1", + "version": "3.1.3", "source": { "type": "git", "url": "https://github.com/alibabacloud-sdk-php/Dysmsapi-20170525.git", - "reference": "5a301a076b29449a488607cbfbb7f12b8cc50c1f" + "reference": "39bebd85974efc144615b9a11dfdb641d23f90f1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/alibabacloud-sdk-php/Dysmsapi-20170525/zipball/5a301a076b29449a488607cbfbb7f12b8cc50c1f", - "reference": "5a301a076b29449a488607cbfbb7f12b8cc50c1f", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/Dysmsapi-20170525/zipball/39bebd85974efc144615b9a11dfdb641d23f90f1", + "reference": "39bebd85974efc144615b9a11dfdb641d23f90f1", "shasum": "", "mirrors": [ { @@ -223,10 +245,8 @@ ] }, "require": { - "alibabacloud/darabonba-openapi": "^0.2.13", - "alibabacloud/endpoint-util": "^0.1.0", - "alibabacloud/openapi-util": "^0.1.10|^0.2.1", - "alibabacloud/tea-utils": "^0.2.21", + "alibabacloud/darabonba": "^1.0.0", + "alibabacloud/openapi-core": "^1.0.0", "php": ">5.5" }, "type": "library", @@ -247,57 +267,9 @@ ], "description": "Alibaba Cloud Dysmsapi (20170525) SDK Library for PHP", "support": { - "source": "https://github.com/alibabacloud-sdk-php/Dysmsapi-20170525/tree/3.1.1" + "source": "https://github.com/alibabacloud-sdk-php/Dysmsapi-20170525/tree/3.1.3" }, - "time": "2025-01-03T17:14:56+00:00" - }, - { - "name": "alibabacloud/endpoint-util", - "version": "0.1.1", - "source": { - "type": "git", - "url": "https://github.com/alibabacloud-sdk-php/endpoint-util.git", - "reference": "f3fe88a25d8df4faa3b0ae14ff202a9cc094e6c5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/alibabacloud-sdk-php/endpoint-util/zipball/f3fe88a25d8df4faa3b0ae14ff202a9cc094e6c5", - "reference": "f3fe88a25d8df4faa3b0ae14ff202a9cc094e6c5", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] - }, - "require": { - "php": ">5.5" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35|^5.4.3" - }, - "type": "library", - "autoload": { - "psr-4": { - "AlibabaCloud\\Endpoint\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Alibaba Cloud SDK", - "email": "sdk-team@alibabacloud.com" - } - ], - "description": "Alibaba Cloud Endpoint Library for PHP", - "support": { - "source": "https://github.com/alibabacloud-sdk-php/endpoint-util/tree/0.1.1" - }, - "time": "2020-06-04T10:57:15+00:00" + "time": "2025-04-16T17:20:20+00:00" }, { "name": "alibabacloud/gateway-spi", @@ -346,17 +318,17 @@ "time": "2022-07-14T05:31:35+00:00" }, { - "name": "alibabacloud/openapi-util", - "version": "0.2.1", + "name": "alibabacloud/openapi-core", + "version": "1.0.7", "source": { "type": "git", - "url": "https://github.com/alibabacloud-sdk-php/openapi-util.git", - "reference": "f31f7bcd835e08ca24b6b8ba33637eb4eceb093a" + "url": "https://github.com/alibabacloud-sdk-php/openapi-core.git", + "reference": "abbb087be7385f0339426c1607c8566174d516da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/alibabacloud-sdk-php/openapi-util/zipball/f31f7bcd835e08ca24b6b8ba33637eb4eceb093a", - "reference": "f31f7bcd835e08ca24b6b8ba33637eb4eceb093a", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/openapi-core/zipball/abbb087be7385f0339426c1607c8566174d516da", + "reference": "abbb087be7385f0339426c1607c8566174d516da", "shasum": "", "mirrors": [ { @@ -366,18 +338,20 @@ ] }, "require": { - "alibabacloud/tea": "^3.1", - "alibabacloud/tea-utils": "^0.2", - "lizhichao/one-sm": "^1.5", + "alibabacloud/credentials": "^1.2.2", + "alibabacloud/darabonba": "^1", + "alibabacloud/gateway-spi": "^1", "php": ">5.5" }, "require-dev": { - "phpunit/phpunit": "*" + "phpunit/phpunit": "^4.8.35|^5.4.3|^9.3", + "symfony/dotenv": "^3.4", + "symfony/var-dumper": "^3.4" }, "type": "library", "autoload": { "psr-4": { - "AlibabaCloud\\OpenApiUtil\\": "src" + "Darabonba\\OpenApi\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -390,12 +364,12 @@ "email": "sdk-team@alibabacloud.com" } ], - "description": "Alibaba Cloud OpenApi Util", + "description": "Alibaba Cloud OpenApi Client Core", "support": { - "issues": "https://github.com/alibabacloud-sdk-php/openapi-util/issues", - "source": "https://github.com/alibabacloud-sdk-php/openapi-util/tree/0.2.1" + "issues": "https://github.com/alibabacloud-sdk-php/openapi-core/issues", + "source": "https://github.com/alibabacloud-sdk-php/openapi-core/tree/1.0.7" }, - "time": "2023-01-10T09:10:10+00:00" + "time": "2025-08-11T06:12:49+00:00" }, { "name": "alibabacloud/tea", @@ -468,102 +442,6 @@ }, "time": "2023-05-16T06:43:41+00:00" }, - { - "name": "alibabacloud/tea-utils", - "version": "0.2.21", - "source": { - "type": "git", - "url": "https://github.com/alibabacloud-sdk-php/tea-utils.git", - "reference": "5039e45714c6456186d267f5d81a4b260a652495" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-utils/zipball/5039e45714c6456186d267f5d81a4b260a652495", - "reference": "5039e45714c6456186d267f5d81a4b260a652495", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] - }, - "require": { - "alibabacloud/tea": "^3.1", - "php": ">5.5" - }, - "type": "library", - "autoload": { - "psr-4": { - "AlibabaCloud\\Tea\\Utils\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Alibaba Cloud SDK", - "email": "sdk-team@alibabacloud.com" - } - ], - "description": "Alibaba Cloud Tea Utils for PHP", - "support": { - "issues": "https://github.com/aliyun/tea-util/issues", - "source": "https://github.com/aliyun/tea-util" - }, - "time": "2024-07-05T06:05:54+00:00" - }, - { - "name": "alibabacloud/tea-xml", - "version": "0.2.4", - "source": { - "type": "git", - "url": "https://github.com/alibabacloud-sdk-php/tea-xml.git", - "reference": "3e0c000bf536224eebbac913c371bef174c0a16a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-xml/zipball/3e0c000bf536224eebbac913c371bef174c0a16a", - "reference": "3e0c000bf536224eebbac913c371bef174c0a16a", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] - }, - "require": { - "php": ">5.5" - }, - "require-dev": { - "phpunit/phpunit": "*", - "symfony/var-dumper": "*" - }, - "type": "library", - "autoload": { - "psr-4": { - "AlibabaCloud\\Tea\\XML\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Alibaba Cloud SDK", - "email": "sdk-team@alibabacloud.com" - } - ], - "description": "Alibaba Cloud Tea XML Library for PHP", - "support": { - "source": "https://github.com/alibabacloud-sdk-php/tea-xml/tree/0.2.4" - }, - "time": "2022-08-02T04:12:58+00:00" - }, { "name": "carbonphp/carbon-doctrine-types", "version": "3.2.0", @@ -1135,7 +1013,7 @@ }, { "name": "illuminate/bus", - "version": "v11.45.3", + "version": "v11.46.0", "source": { "type": "git", "url": "https://github.com/illuminate/bus.git", @@ -1194,7 +1072,7 @@ }, { "name": "illuminate/collections", - "version": "v11.46.0", + "version": "v11.46.1", "source": { "type": "git", "url": "https://github.com/illuminate/collections.git", @@ -1256,7 +1134,7 @@ }, { "name": "illuminate/conditionable", - "version": "v11.46.0", + "version": "v11.46.1", "source": { "type": "git", "url": "https://github.com/illuminate/conditionable.git", @@ -1308,7 +1186,7 @@ }, { "name": "illuminate/container", - "version": "v11.46.0", + "version": "v11.46.1", "source": { "type": "git", "url": "https://github.com/illuminate/container.git", @@ -1365,7 +1243,7 @@ }, { "name": "illuminate/contracts", - "version": "v11.45.3", + "version": "v11.46.1", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", @@ -1480,7 +1358,7 @@ }, { "name": "illuminate/macroable", - "version": "v11.46.0", + "version": "v11.46.1", "source": { "type": "git", "url": "https://github.com/illuminate/macroable.git", @@ -1532,7 +1410,7 @@ }, { "name": "illuminate/pipeline", - "version": "v11.46.0", + "version": "v11.46.1", "source": { "type": "git", "url": "https://github.com/illuminate/pipeline.git", @@ -1586,7 +1464,7 @@ }, { "name": "illuminate/redis", - "version": "v11.46.0", + "version": "v11.46.1", "source": { "type": "git", "url": "https://github.com/illuminate/redis.git", @@ -1646,7 +1524,7 @@ }, { "name": "illuminate/support", - "version": "v11.45.3", + "version": "v11.46.1", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", @@ -1727,66 +1605,6 @@ }, "time": "2025-08-11T14:50:36+00:00" }, - { - "name": "lizhichao/one-sm", - "version": "1.10", - "source": { - "type": "git", - "url": "https://github.com/lizhichao/sm.git", - "reference": "687a012a44a5bfd4d9143a0234e1060543be455a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/lizhichao/sm/zipball/687a012a44a5bfd4d9143a0234e1060543be455a", - "reference": "687a012a44a5bfd4d9143a0234e1060543be455a", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] - }, - "require": { - "php": ">=5.6" - }, - "type": "library", - "autoload": { - "psr-4": { - "OneSm\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "tanszhe", - "email": "1018595261@qq.com" - } - ], - "description": "国密sm3", - "keywords": [ - "php", - "sm3" - ], - "support": { - "issues": "https://github.com/lizhichao/sm/issues", - "source": "https://github.com/lizhichao/sm/tree/1.10" - }, - "funding": [ - { - "url": "https://www.vicsdf.com/img/w.jpg", - "type": "custom" - }, - { - "url": "https://www.vicsdf.com/img/z.jpg", - "type": "custom" - } - ], - "time": "2021-05-26T06:19:22+00:00" - }, { "name": "monolog/monolog", "version": "2.10.0", @@ -2240,17 +2058,17 @@ "time": "2024-12-25T08:00:38+00:00" }, { - "name": "php-amqplib/php-amqplib", - "version": "v2.8.0", + "name": "paragonie/constant_time_encoding", + "version": "v3.1.3", "source": { "type": "git", - "url": "https://github.com/php-amqplib/php-amqplib.git", - "reference": "7df8553bd8b347cf6e919dd4a21e75f371547aa0" + "url": "https://github.com/paragonie/constant_time_encoding.git", + "reference": "d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-amqplib/php-amqplib/zipball/7df8553bd8b347cf6e919dd4a21e75f371547aa0", - "reference": "7df8553bd8b347cf6e919dd4a21e75f371547aa0", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77", + "reference": "d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77", "shasum": "", "mirrors": [ { @@ -2260,25 +2078,158 @@ ] }, "require": { - "ext-bcmath": "*", - "php": ">=5.4.0" + "php": "^8" + }, + "require-dev": { + "infection/infection": "^0", + "nikic/php-fuzzer": "^0", + "phpunit/phpunit": "^9|^10|^11", + "vimeo/psalm": "^4|^5|^6" + }, + "type": "library", + "autoload": { + "psr-4": { + "ParagonIE\\ConstantTime\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com", + "role": "Maintainer" + }, + { + "name": "Steve 'Sc00bz' Thomas", + "email": "steve@tobtu.com", + "homepage": "https://www.tobtu.com", + "role": "Original Developer" + } + ], + "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "keywords": [ + "base16", + "base32", + "base32_decode", + "base32_encode", + "base64", + "base64_decode", + "base64_encode", + "bin2hex", + "encoding", + "hex", + "hex2bin", + "rfc4648" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/constant_time_encoding/issues", + "source": "https://github.com/paragonie/constant_time_encoding" + }, + "time": "2025-09-24T15:06:41+00:00" + }, + { + "name": "paragonie/random_compat", + "version": "v9.99.100", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">= 7" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*", + "vimeo/psalm": "^1" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "polyfill", + "pseudorandom", + "random" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/random_compat/issues", + "source": "https://github.com/paragonie/random_compat" + }, + "time": "2020-10-15T08:29:30+00:00" + }, + { + "name": "php-amqplib/php-amqplib", + "version": "v3.6.1", + "source": { + "type": "git", + "url": "https://github.com/php-amqplib/php-amqplib.git", + "reference": "76eee289e98b0b309a761787e65cbe1acbaf8c72" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-amqplib/php-amqplib/zipball/76eee289e98b0b309a761787e65cbe1acbaf8c72", + "reference": "76eee289e98b0b309a761787e65cbe1acbaf8c72", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-mbstring": "*", + "ext-sockets": "*", + "php": "^7.2||^8.0", + "phpseclib/phpseclib": "^2.0|^3.0" + }, + "conflict": { + "php": "7.4.0 - 7.4.1" }, "replace": { "videlalvaro/php-amqplib": "self.version" }, "require-dev": { - "phpdocumentor/phpdocumentor": "^2.9", - "phpunit/phpunit": "^4.8", - "scrutinizer/ocular": "^1.1", - "squizlabs/php_codesniffer": "^2.5" - }, - "suggest": { - "ext-sockets": "Use AMQPSocketConnection" + "ext-curl": "*", + "nategood/httpful": "^0.2.20", + "phpunit/phpunit": "^7.5|^9.5", + "squizlabs/php_codesniffer": "^3.6" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.8-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -2296,13 +2247,18 @@ "role": "Original Maintainer" }, { - "name": "John Kelly", - "email": "johnmkelly86@gmail.com", + "name": "Raúl Araya", + "email": "nubeiro@gmail.com", "role": "Maintainer" }, { - "name": "Raúl Araya", - "email": "nubeiro@gmail.com", + "name": "Luke Bakken", + "email": "luke@bakken.io", + "role": "Maintainer" + }, + { + "name": "Ramūnas Dronga", + "email": "github@ramuno.lt", "role": "Maintainer" } ], @@ -2315,9 +2271,125 @@ ], "support": { "issues": "https://github.com/php-amqplib/php-amqplib/issues", - "source": "https://github.com/php-amqplib/php-amqplib/tree/master" + "source": "https://github.com/php-amqplib/php-amqplib/tree/v3.6.1" }, - "time": "2018-10-23T18:48:24+00:00" + "time": "2024-02-07T17:21:26+00:00" + }, + { + "name": "phpseclib/phpseclib", + "version": "3.0.47", + "source": { + "type": "git", + "url": "https://github.com/phpseclib/phpseclib.git", + "reference": "9d6ca36a6c2dd434765b1071b2644a1c683b385d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/9d6ca36a6c2dd434765b1071b2644a1c683b385d", + "reference": "9d6ca36a6c2dd434765b1071b2644a1c683b385d", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "paragonie/constant_time_encoding": "^1|^2|^3", + "paragonie/random_compat": "^1.4|^2.0|^9.99.99", + "php": ">=5.6.1" + }, + "require-dev": { + "phpunit/phpunit": "*" + }, + "suggest": { + "ext-dom": "Install the DOM extension to load XML formatted public keys.", + "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", + "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", + "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", + "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." + }, + "type": "library", + "autoload": { + "files": [ + "phpseclib/bootstrap.php" + ], + "psr-4": { + "phpseclib3\\": "phpseclib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jim Wigginton", + "email": "terrafrost@php.net", + "role": "Lead Developer" + }, + { + "name": "Patrick Monnerat", + "email": "pm@datasphere.ch", + "role": "Developer" + }, + { + "name": "Andreas Fischer", + "email": "bantu@phpbb.com", + "role": "Developer" + }, + { + "name": "Hans-Jürgen Petrich", + "email": "petrich@tronic-media.com", + "role": "Developer" + }, + { + "name": "Graham Campbell", + "email": "graham@alt-three.com", + "role": "Developer" + } + ], + "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", + "homepage": "http://phpseclib.sourceforge.net", + "keywords": [ + "BigInteger", + "aes", + "asn.1", + "asn1", + "blowfish", + "crypto", + "cryptography", + "encryption", + "rsa", + "security", + "sftp", + "signature", + "signing", + "ssh", + "twofish", + "x.509", + "x509" + ], + "support": { + "issues": "https://github.com/phpseclib/phpseclib/issues", + "source": "https://github.com/phpseclib/phpseclib/tree/3.0.47" + }, + "funding": [ + { + "url": "https://github.com/terrafrost", + "type": "github" + }, + { + "url": "https://www.patreon.com/phpseclib", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpseclib/phpseclib", + "type": "tidelift" + } + ], + "time": "2025-10-06T01:07:24+00:00" }, { "name": "pimple/pimple", @@ -2723,16 +2795,16 @@ }, { "name": "psr/http-message", - "version": "2.0", + "version": "1.1", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", - "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", - "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba", + "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba", "shasum": "", "mirrors": [ { @@ -2747,7 +2819,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "1.1.x-dev" } }, "autoload": { @@ -2762,7 +2834,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" + "homepage": "http://www.php-fig.org/" } ], "description": "Common interface for HTTP messages", @@ -2776,9 +2848,9 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-message/tree/2.0" + "source": "https://github.com/php-fig/http-message/tree/1.1" }, - "time": "2023-04-04T09:54:51+00:00" + "time": "2023-04-04T09:50:52+00:00" }, { "name": "psr/log", @@ -3550,16 +3622,16 @@ }, { "name": "symfony/http-foundation", - "version": "v6.4.22", + "version": "v6.4.26", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "6b7c97fe1ddac8df3cc9ba6410c8abc683e148ae" + "reference": "369241591d92bb5dfb4c6ccd6ee94378a45b1521" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/6b7c97fe1ddac8df3cc9ba6410c8abc683e148ae", - "reference": "6b7c97fe1ddac8df3cc9ba6410c8abc683e148ae", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/369241591d92bb5dfb4c6ccd6ee94378a45b1521", + "reference": "369241591d92bb5dfb4c6ccd6ee94378a45b1521", "shasum": "", "mirrors": [ { @@ -3613,7 +3685,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v6.4.22" + "source": "https://github.com/symfony/http-foundation/tree/v6.4.26" }, "funding": [ { @@ -3624,12 +3696,16 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2025-05-11T15:36:20+00:00" + "time": "2025-09-16T08:22:30+00:00" }, { "name": "symfony/polyfill-ctype", @@ -5121,16 +5197,16 @@ }, { "name": "workerman/coroutine", - "version": "v1.1.3", + "version": "v1.1.4", "source": { "type": "git", "url": "https://github.com/workerman-php/coroutine.git", - "reference": "df8fc428967d512a74a8a7d80355c1d40228c9fa" + "reference": "b0bebfa9d41b992ad0a835ddf2ee8fa5d58eca44" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/workerman-php/coroutine/zipball/df8fc428967d512a74a8a7d80355c1d40228c9fa", - "reference": "df8fc428967d512a74a8a7d80355c1d40228c9fa", + "url": "https://api.github.com/repos/workerman-php/coroutine/zipball/b0bebfa9d41b992ad0a835ddf2ee8fa5d58eca44", + "reference": "b0bebfa9d41b992ad0a835ddf2ee8fa5d58eca44", "shasum": "", "mirrors": [ { @@ -5160,9 +5236,9 @@ "description": "Workerman coroutine", "support": { "issues": "https://github.com/workerman-php/coroutine/issues", - "source": "https://github.com/workerman-php/coroutine/tree/v1.1.3" + "source": "https://github.com/workerman-php/coroutine/tree/v1.1.4" }, - "time": "2025-02-17T03:34:21+00:00" + "time": "2025-10-11T15:09:08+00:00" }, { "name": "workerman/crontab",