Download the PHP package dtyq/super-magic-module without Composer

On this page you can find all versions of the php package dtyq/super-magic-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package super-magic-module

Super Magic Module

简介

Super Magic Module 是一个基于 Hyperf 框架的扩展包,专为 magic-service 设计的增强扩展模块。该模块采用领域驱动设计(DDD)架构,为应用程序提供了清晰的分层结构和丰富的功能组件。

Super Magic Module 需要结合 magic-service 一起使用,其核心功能是通过接管 magic-service 的消息事件,建立用户与超级麦吉智能体之间的信息传递通道。这种设计使得用户可以无缝地与智能体进行交互,从而获得更加智能化的服务体验。

作为一个桥接模块,Super Magic Module 不仅处理消息的传递,还负责转换数据格式、协调事件流程,以及提供必要的上下文信息,确保智能体能够准确理解用户意图并给出恰当的响应。

功能特性

系统架构

Super Magic Module 作为 magic-service 的扩展,在整个系统中扮演以下角色:

该模块通过以下方式与 magic-service 集成:

  1. 监听 magic-service 的消息事件
  2. 处理和转换消息格式
  3. 传递消息至超级麦吉智能体
  4. 接收并处理智能体的响应
  5. 将处理结果返回给 magic-service

安装

通过 Composer 安装:

基本使用

配置

模块提供了 ConfigProvider 用于注册相关服务和功能。在 Hyperf 应用的 config/autoload 目录下配置:

与 magic-service 集成

要将 Super Magic Module 与 magic-service 集成,需要在 magic-service 中依赖进行接管:

领域层使用

模块基于 DDD 架构设计,包含以下几个主要层次:

开发

目录结构

命令

该扩展包提供了一系列有用的命令:

消息流程

Super Magic Module 处理消息的基本流程如下:

  1. 用户在 magic-service 发送消息
  2. magic-service 触发消息事件
  3. Super Magic Module 监听到事件,提取消息内容
  4. 消息被转换为超级麦吉智能体可理解的格式
  5. 消息发送给超级麦吉智能体
  6. 智能体处理消息并生成响应
  7. Super Magic Module 接收响应并转换格式
  8. 响应通过事件传递回 magic-service
  9. 用户收到智能体的回应

测试

执行测试:

贡献指南

  1. Fork 该仓库
  2. 创建特性分支 (git checkout -b feature/amazing-feature)
  3. 提交更改 (git commit -m 'Add some amazing feature')
  4. 推送到分支 (git push origin feature/amazing-feature)
  5. 创建一个 Pull Request

相关资源

作者

许可证

该项目采用私有许可证 - 详情请参阅团队内部文档。

项目状态

该模块正在积极开发中,作为 magic-service 的增强组件,持续提供智能交互能力的升级。我们欢迎团队成员提供反馈和建议,共同完善这一关键模块。


All versions of super-magic-module with dependencies

PHP Build Version
Package Version
Requires hyperf/http-server Version ~3.1.0
hyperf/translation Version ~3.1.0
hyperf/logger Version ~3.1.0
hyperf/database Version ~3.1.0
hyperf/db-connection Version ~3.1.0
hyperf/amqp Version ^3.1
hyperf/cache Version ^3.1
hyperf/constants Version ~3.1
hyperf/crontab Version ~3.1.0
hyperf/engine-swow Version ^2.12
hyperf/guzzle Version ~3.1.0
hyperf/http-message Version ~3.1.0
hyperf/phar Version ~3.1.0
hyperf/process Version ~3.1.0
hyperf/rate-limit Version ^3.1
hyperf/redis Version ~3.1.0
hyperf/snowflake Version ~3.1.0
hyperf/socketio-server Version ^3.1
hyperf/validation Version ^3.1
hyperf/websocket-client Version ^3.1
hyperf/websocket-server Version ~3.1.0
overtrue/chinese-calendar Version ^1.0
dtyq/api-response Version ~0.1
96qbhy/hyperf-auth Version ^3.1
symfony/yaml Version ^6.4 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dtyq/super-magic-module contains the following files

Loading the files please wait ...