arter/amos-community
Composer 安装命令:
composer require arter/amos-community
包简介
Sistema AMOS per le community
关键字:
README 文档
README
Communities are network of people having common purposes/interest. Common contents can be shared with community members and are available in community dashboard. Community contents visibility for non-members depends on table fields contents_visibility that is 0 by default (contents are not available for non-members).
By default a community can be of type:
- Open: any user can subscribe (community visible in community list)
- Private: access reserved to user accepted by community managers or invited (visible but acceptance is required)
- Restricted to members (closed)- Subscription is only on invitation: community is visible only to community membership.
SubCommunities can be created under another community domain.
Installation
Add community requirement in your composer.json:
"arter/amos-community": "dev-master",
Enable the Community modules in modules-amos.php, add :
'community' => [
'class' => 'arter\amos\community\AmosCommunity',
],
add community migrations to console modules (console/config/migrations-amos.php):
'@vendor/arter/amos-community/src/migrations'
The community is suitable to be used with cwh as network. To do so:
- Activate cwh plugin
- Open cwh configuration wizard (admin privilege is required) url: /cwh/configuration/wizard
- search for community in network configuration section
- edit configuration of community if needed and save
If tags are needed enable this module in "modules-amos.php" (backend/config folder in main project) in tag section. After that, enable the trees in tag manager.
Configurable fields
Here the list of configurable fields, properties of module AmosCommunity. If some property default is not suitable for your project, you can configure it in module, eg:
'community' => [
'class' => 'arter\amos\community\AmosCommunity',
'showSubcommunities' => false, //changed property (default was true)
],
- showSubcommunities - boolean, default = true
Define if subcommunities are visible in the lists (created by, my communities, etc..) - showSubcommunitiesWidget - boolean, default = false
Define if the widget of subCommunities is visible in the community dashboard - bypassWorkflow - boolean, default = false
If ignore community workflow - enableWizard - boolean, default = true
If thew izard for community creation is enabled - communityType - int, default = null
null if all community types are enabled, to have a fixed community type set this field
to change default, use constants in Community type model, eg:'community' => [ 'class' => 'arter\amos\community\AmosCommunity', 'communityType' => \arter\amos\community\models\CommunityType::COMMUNITY_TYPE_CLOSED, ], - viewTabContents - boolean, default = true
Define if tab contents in community view mode is visible - extendRoles - boolean, default = false
If true additional roles Author and Reader are considered, participant will be editor customInvitationForm - boolean, default = false
If true associate or create user.communityRequiredFields - array, default = ['name', 'community_type_id', 'description']
Mandatory fields in community form: by default, community name, type and description are mandatory.
If in your platform, for example, you don't want community description to be a mandatory field, overwrite communityRequiredFields property as below:'community' => [ 'class' => 'arter\amos\community\AmosCommunity', 'communityRequiredFields' => ['name', 'community_type_id'] ],- hideContentsModels - array, default = [(ClassPath)ShowcaseProject, (ClassPath)EenPartnershipProposal',(ClassPath)Event']
Define the models class path to hide in view of content tab, overwrite hideContentsModels property as below:'community' => [ 'class' => 'arter\amos\community\AmosCommunity', 'communityRequiredFields' => [ 'model/class/path', ] ], inviteUserOfcommunityParent - boolean, default = false
You can invite user in a subcomunity only if they belogs to the community fatherhideWidgetGraphicsActions - boolean, default = false
htmlMailContent - array, default = [] You can personalize the email sent by the community the values are present in getNumTypeEmail($type) in EmailUtility and are ('registration-notification', 'registration-request', 'invitation', 'accept-invitation', reject-invitation, 'registration-rejects', 'welcome', 'change-role' )
'htmlMailContent' => [ 'welcome' => '@backend/mail/community/welcome' 'change-role => '@backend/mail/community/change-role', //CHANGE_ROLE ],htmlMailSubject - array, default = [] It work in the some way of the previous param
enableUserJoinedReportDownload - boolean, default = false Enable to display the "User Reports" container in community view (this will also display the "download user joined report" button inside it)
enableConfigureCommunityDashboard - boolean, default = false Added possibility to configure the widgets the are contained inside the community dashboard
- autoCommunityManagerRoles - array, default = [] All the users with the platform roles in this array, when creating a community, are added as community managers.
arter/amos-community 适用场景与选型建议
arter/amos-community 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 602 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 10 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「community」 「yii2」 「amos」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 arter/amos-community 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 arter/amos-community 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 arter/amos-community 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
Cross-platform general-purpose multiple content forms social network service software.
Sistema AMOS per le FAQ
Amos Ticket
Sistema AMOS per le Organizzazioni
Partnership profiles - plugin
统计信息
- 总下载量: 602
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2020-10-06