jameron/invitations
Composer 安装命令:
composer create-project jameron/invitations
包简介
Email invitations for bringing on new users to your applications.
关键字:
README 文档
README
Send email based invites to potential new users.
This package is designed to enable web applications the feature of sending tokenized email invitations to potential new users. The invitation is a record on a invitations table, and once claimed is removed and a new user is added to the users table. This package was designed to work the the Admin Package and the Regulator Package
Setup instructions
- Add the package to yuor composer.json file
"jameron/invitations" : "*"
NOTE: Laravel 5.5 users can skip steps 2 and 3
- Add to your providers:
Jameron\Invitations\InvitationsServiceProvider::class,
- Add to your Facades:
'Invitations' => Jameron\Invitations\Facades\InvitationsFacade::class,
-
Publish the migrations and config
php artisan vendor:publish -
Run migrations
pph artisan migrate -
If you want to tie related model data to your invitations you can set that in your config/invitations.php config file.
Make sure to add the Invitable Trait to the model you are relating to your invitations:
use Jameron/Invitations/Models/Traits/Invitable;
then in the class add that Trait
use Invitable;
If for example say you are inviting an user to manage a page you created for them. You have a table called pages, with foreign_key user_id currently set to null. You want the page user_id (nullable) set to the invited user once they claim their invite.
Your config would look like this:
'related' => [ 'active' => false, 'model' => \App\Page::class, 'resource_route' => 'pages', 'title' => 'Pages', 'id_column' => 'id', 'value_column' => 'title', 'user_foreign_key' => 'user_id', 'owner_foreign_key' => null ],
When the invitation is claimed the page associated to the invitation will be updated with the users id.
- Add to your database/seeds/DatabaseSeeder.php
$this->call(\Jameron\Import\database\seeds\InvitationsSeeder::class);
jameron/invitations 适用场景与选型建议
jameron/invitations 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 105 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 11 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「email」 「invitations」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jameron/invitations 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jameron/invitations 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jameron/invitations 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Extensible library for building notifications and sending them via different delivery channels.
Email+ extends Kirby's email capabilities by adding support for multiple email services using the same Kirby email API.
A comprehensive Filament plugin for managing tenant members, invitations, and role-based access control in multi-tenant applications.
Enterprise invite-by-code, referral, rewards, waitlist & anti-abuse system for Laravel — multi-tenant, concurrency-safe, idempotent, GDPR-ready.
System to invite persons to platform
Laravel contact us form package to send email and save to database
统计信息
- 总下载量: 105
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-08