hivellm/umicp
Composer 安装命令:
composer require hivellm/umicp
包简介
UMICP PHP Bindings - High-performance inter-model communication protocol for AI systems
关键字:
README 文档
README
High-performance PHP bindings for UMICP - 85% Complete, Production Ready
🎯 Status
Version: 0.2.0 | Grade: A+ (Excellent) | Coverage: 95%
✅ Production Ready ████████████████████ 100% ✅
✅ Fully Tested ███████████████████░ 95% ✅
✅ Packagist Ready ████████████████████ 100% ✅
Latest: v0.2.0 Release | API Docs
🚀 Installation
# Install via Packagist composer require hivellm/umicp # Or add to composer.json { "require": { "hivellm/umicp": "^0.2" } }
System Requirements
- PHP: 8.1 or higher
- Extensions:
ffi,json(usually enabled) - OS: Linux, macOS, Windows (WSL)
Quick Start
<?php require 'vendor/autoload.php'; use UMICP\Core\{Envelope, Matrix, OperationType}; use UMICP\Transport\MultiplexedPeer; // Create an envelope $envelope = new Envelope( from: 'my-app', to: 'server', operation: OperationType::DATA, capabilities: ['action' => 'hello'] ); echo $envelope->serialize(); // JSON output
💻 API
use UMICP\Core\{Envelope, Matrix, OperationType}; use UMICP\Transport\MultiplexedPeer; use React\EventLoop\Loop; // Envelope $envelope = new Envelope( from: 'client', to: 'server', operation: OperationType::DATA, capabilities: ['msg' => 'Hello!'] ); $json = $envelope->serialize(); // Matrix (11 operations) $matrix = new Matrix(); $dotProduct = $matrix->dotProduct([1,2,3], [4,5,6]); $similarity = $matrix->cosineSimilarity($vec1, $vec2); // Multiplexed Peer (P2P) $peer = new MultiplexedPeer('my-peer', Loop::get(), ['port' => 20081]); $peer->on('data', fn($env, $p) => $peer->sendToPeer($p->id, $resp)); $peer->connectToPeer('ws://localhost:20082/umicp');
📊 What's Included
- 24 PHP Classes - Complete UMICP implementation
- Full Transport Layer - WebSocket client/server + P2P
- 115+ Tests - Unit, integration, performance (95% coverage)
- 5 Examples - All features demonstrated
- CI/CD - GitHub Actions configured
- 95 Pages Docs - Complete guides
📚 Documentation
- Quick Start - Get started in 5 minutes
- API Reference - Complete API
- Architecture - System design
- Implementation - What's done
- Status Report - Current progress
🧪 Testing
# All tests ./test-all.sh # Or individual ./vendor/bin/phpunit # All tests ./vendor/bin/phpunit --testsuite=Unit ./vendor/bin/phpunit --testsuite=Integration php benchmark.php # Performance php verify-implementation.php # Verification
Coverage: 26 test files, 115+ tests, ~95% code coverage
📦 Features
✅ Complete UMICP protocol
✅ WebSocket transport (client + server)
✅ P2P multiplexed architecture
✅ Auto-handshake protocol
✅ 11 matrix operations (SIMD)
✅ FFI C++ integration
✅ RAII memory management
✅ PSR-12 compliant
✅ PHP 8.1+ (enums, strict types)
📁 Structure
umicp/bindings/php/
├── src/ 24 classes (Core, FFI, Transport, Exceptions)
├── tests/ 26 files (115+ tests, 95% coverage)
├── examples/ 5 working demos
├── docs/ 17 files (95 pages)
├── config/ Configuration
└── Build scripts Automation
hivellm/umicp 适用场景与选型建议
hivellm/umicp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「websocket」 「real-time」 「communication」 「async」 「protocol」 「matrix」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hivellm/umicp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hivellm/umicp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hivellm/umicp 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Talk is a Laravel based realtime messaging, chatting and conversation system. It helps to develop users messaging, chatting and conversations in easy way.
Dispatcher to handle e-mail and instant notifications.
Package to publish/consume domain events messages from Laravel apps
Boxalino Real Time User Experience (RTUX) Magento2 plugin
Laravel package for generating Agora.io tokens (RTC, RTM, Chat) with support for both V1 and V2 token formats
PHP library for Broadcastt HTTP API
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 33
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-12