azaharizaman/nexus-query-engine
最新稳定版本:v0.1.0-alpha1
Composer 安装命令:
composer require azaharizaman/nexus-query-engine
包简介
High-performance framework-agnostic query execution and data aggregation engine for the Nexus ERP system
关键字:
README 文档
README
Framework-agnostic analytics and business intelligence engine for the Nexus ERP ecosystem.
Overview
The Nexus\QueryEngine package provides a comprehensive analytics engine that enables:
- Query Execution: Execute complex analytical queries with ACID compliance
- Predictive Modeling: Machine learning integration for forecasting and predictions
- Data Aggregation: Parallel data source merging and aggregation
- Permission Management: Role-based access control with delegation chains
- Analytics History: Immutable audit trail of all analytics operations
- Guard Conditions: Pre-execution validation and security checks
Key Features
- ✅ Framework-agnostic design (no Laravel dependencies)
- ✅ ACID-compliant query execution with transaction support
- ✅ Parallel data source processing
- ✅ Built-in security with RBAC integration
- ✅ Tenant isolation support
- ✅ Predictive model management with drift detection
- ✅ Before/after hooks for extensibility
- ✅ Database-driven analytics definitions (JSON)
- ✅ Comprehensive error handling and retry logic
Installation
In the Atomy application:
composer require azaharizaman/nexus-query-engine:"*@dev"
Basic Usage
use Nexus\QueryEngine\Services\AnalyticsManager; // Execute a query $result = $analyticsManager->runQuery($queryDefinition, $context); // Check permissions $canExecute = $analyticsManager->can($userId, 'execute', $queryId); // Get analytics history $history = $analyticsManager->getHistory($entityId, $limit);
Architecture
This package follows the Nexus architecture principles:
- Logic in Packages: All business logic is framework-agnostic
- Implementation in Applications: Atomy provides concrete implementations
- Contract-Driven: All dependencies defined via interfaces
Documentation
See docs/ANALYTICS_IMPLEMENTATION.md for complete implementation details.
License
MIT License - see LICENSE file for details.
Documentation
Package Documentation
- Getting Started Guide - Quick start and basic usage
- API Reference - Complete interface documentation
- Integration Guide - Laravel and Symfony integration examples
Package Specifications
- IMPLEMENTATION_SUMMARY.md - Implementation progress and architecture decisions
- REQUIREMENTS.md - Detailed package requirements (84 requirements)
- TEST_SUITE_SUMMARY.md - Test coverage plan (135+ tests planned)
- VALUATION_MATRIX.md - Package valuation ($250K, 2,083% ROI)
Code Examples
- Basic Usage - Simple queries and common use cases
- Advanced Usage - Multi-dimensional analysis, cohort analysis
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-04