filamerce/filament-user-profile
Composer 安装命令:
composer require filamerce/filament-user-profile
包简介
Simple filament user profile.
README 文档
README
This package draws inspiration from Filament Breezy but does not include two-factor authentication (2FA) functionality.
Rather than offering multiple plugin options, this package provides a streamlined approach to extending and replacing components.
Installation
To install the package, execute the following command:
composer require filamerce/filament-user-panel
Register Plugin
To register the plugin, use the following code snippet:
use Filamerce\FilamentUserProfile\UserProfilePlugin; $panel->plugins([ UserProfilePlugin::make() ]);
Options
Register User Menu Item
Control whether the plugin should automatically register the user menu item:
UserProfilePlugin::make() ->registerUserMenu(false);
Custom Profile Page
Replace the entire ProfilePage with your custom component:
UserProfilePlugin::make() ->profilePage(MyProfileComponent::class);
Custom Profile Components
Manage the registered components and their order:
use Filamerce\FilamentUserProfile\Livewire\PersonalInfo; use Filamerce\FilamentUserProfile\Livewire\UpdatePassword; UserProfilePlugin::make() ->profileComponents([ 'personal_info' => PersonalInfo::class, 'update_password' => UpdatePassword::class, ]);
Replace Profile Component
Replace a specific profile component:
use My\Component\PersonalInfo; UserProfilePlugin::make() ->replaceProfileComponent('personal_info', PersonalInfo::class);
Register New Profile Component
Register a new profile component:
use My\Component\SomeComponent; UserProfilePlugin::make() ->registerProfileComponent('some_component', SomeComponent::class);
Remove Profile Component
Remove a specific profile component:
use My\Component\SomeComponent; UserProfilePlugin::make() ->removeProfileComponent('personal_info');
Laravel Sanctum
Laravel Sanctum is automatically detected, and a component to manage Sanctum tokens is displayed in the profile. Control the available abilities with the following code:
UserProfilePlugin::make() ->sanctumAbilities(['read', 'write']);
By default, all tokens are registered with all abilities ([*]).
Two-Factor Authentication
This package is compatible with stephenjude/filament-two-factor-authentication. Simply register the component as shown below:
UserProfilePlugin::make() ->registerProfileComponent('2fa', \Stephenjude\FilamentTwoFactorAuthentication\Livewire\TwoFactorAuthentication::class)
filamerce/filament-user-profile 适用场景与选型建议
filamerce/filament-user-profile 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.31k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 02 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「user」 「laravel」 「profile」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 filamerce/filament-user-profile 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 filamerce/filament-user-profile 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 filamerce/filament-user-profile 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A module for Pluf to manage user profiles and user accounts
The Flarum extension that allows users to private their profiles.
PhpPlaisio: Profile
A PSR-6 compatible cache pool for profiling cache access, hits and misses.
Custom Profile Fields for UserFrosting V4
Standalone replacement for php's native get_browser() function
统计信息
- 总下载量: 1.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-28