eye4web / eye4web-zfc-user-pm
ZfcUser 的私有消息系统
dev-master
2024-02-22 10:04 UTC
Requires
- php: ^7.2|~8.0
- eye4web/eye4web-base: ~0.0.1
- laminas/laminas-serializer: ~2.1|~3.0
- ramsey/uuid: ^3.0|^4.0
- zf-commons/zfc-user: ~3.0.0
Requires (Dev)
- codeclimate/php-test-reporter: 0.*
- phpunit/phpunit: ~4.0.0
- squizlabs/php_codesniffer: ~2.0.0@DEV
- zf-commons/zfc-user-doctrine-orm: ~1.0
Suggests
- zf-commons/zfc-user-doctrine-orm: ZF2 Doctrine ORM module for use with the Doctrine ORM mapper
This package is not auto-updated.
Last update: 2024-09-14 16:30:31 UTC
README
简介
Eye4webZfcUserPm 是一个基本的私有消息模块,允许用户之间发送消息。
默认情况下,此模块通过 Doctrine ORM(通过 DoctrineORM 映射器)工作。添加自己的映射器,例如 ZendDb,非常简单。
- 创建自定义映射器
- 在配置中更改映射器,以指向您的自定义映射器
注意:此模块旨在非常基础,只包含非常基本的常见功能。更多功能将通过扩展提供,请参阅以下内容。
功能
- 用户间发送消息
- 群组对话
- 删除对话(不删除数据库中的对话,只从用户处删除)
需求
硬
- PHP 5.4
- Eye4webBase
- ZfcUser
软
- ZfcUserDoctrineORM 用于与 Doctrine 映射器一起使用
安装
使用 composer
-
将此项目的 composer.json 添加到您的项目中
"require": { "eye4web/eye4web-zfc-user-pm": "dev-master" }
-
现在运行以下命令让 composer 下载模块:
$ php composer.phar update
-
将 config/eye4web.zfcuser.pm.global.php.dist 复制到您的 autoload 文件夹(
config/autoload/
) -
将数据库模式导入到您的数据库中。SQL 模式位于
data/schema.sql
-
在您的
application.config.php
文件中启用它。<?php return array( 'modules' => array( // ... 'Eye4web\ZfcUser\Pm' ), // ... );
扩展
- Eye4webZfcUserPmFolders - 将对话放入文件夹
- Eye4webZfcUserPmSearch - 搜索对话
- Eye4webZfcUserPmStar - 星标重要对话