pessek/hypeinvite
Composer 安装命令:
composer require pessek/hypeinvite
包简介
An interface for inviting new users to the site
README 文档
README
Features
- Allows users to invite new users by email
- An option to create an invite-only network
- Keeps track of all invitations to the same email address
- Creates friend requests when invitations are accepted
- Group owners can allow members to invite other members
- Site admins can allow group invitations of non-friends
- Site admins can allow group invitations by email
Notes
- Registration must be enabled on the site for this plugin to work
- In an invite-only network, uservalidationbyemail will be bypassed, as it is assumed that users would have received their invitation code by email
- When invited by email to group, non-existing users will first have to create an account. Upon registration, invitations will be created for every group the email has been invited to before registration.
Developer Notes
Creating Invites
Other plugins may centralize off-site invitations and attach custom behavior to the invites. For example, to invite non-registered users to an event by their email:
$invite = users_invite_create_user_invite($email); add_entity_relationship($invite->guid, 'invited_to', $event->guid); add_entity_relationship($invite->guid, 'invited_by', $inviter->guid); // generate a registration link to include in the notification $registration_link = users_invite_get_registration_link($email, $inviter->guid); // implement a custom handler elgg_register_plugin_hook_handler('accept', 'invite', function($hook, $type, $return, $params) { $invite = $params['invite']; $user = $params['user']; $events = elgg_get_entities_from_relationship([ 'types' => 'object', 'subtypes' => 'event', 'relationship' => 'invited_to', 'relationship_guid' => $invite->guid, 'limit' => 0, ]); if (!$events) { return; } foreach ($events as $event) { add_entity_relationship($user->guid, 'attending', $event->guid); } });
pessek/hypeinvite 适用场景与选型建议
pessek/hypeinvite 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 05 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「elgg」 「Invite」 「invite code」 「invite only network」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pessek/hypeinvite 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pessek/hypeinvite 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pessek/hypeinvite 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
User to Team associations for the Laravel Framework
Import an RSS-feed into blog
Easy invite new users to your slack group
Enterprise invite-by-code, referral, rewards, waitlist & anti-abuse system for Laravel — multi-tenant, concurrency-safe, idempotent, GDPR-ready.
Plugin for YOURLS. Default tools to use in some laemmi plugins
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2021-05-31