skywalker-labs/laraguard
Composer 安装命令:
composer require skywalker-labs/laraguard
包简介
On-premises 2FA Authentication for all your users out-of-the-box
README 文档
README
Laraguard Omega (v1.0) 🛡️💎
The Ultimate Sovereign 2FA Fortress for Laravel
Laraguard Omega is a premier, enterprise-grade Two-Factor Authentication (2FA) suite for Laravel. Re-engineered from the ground up in v1.0, it offers a "Sovereign Security" experience that combines stealth architecture with elite performance.
🏛️ Modern Architecture (The V5 Refactor)
Laraguard v1.0 introduces a modernized, PSR-4 compliant directory structure built for maximum maintainability:
- 🧬
src/Traits: Decoupled, reusable security concerns. - �
src/Providers: High-performance service bootstrapping and discovery. - 🧱
src/Models: Dedicated model layer with specializedConcerns. - ✅ 100% Stability: Verified by 96 rigorous tests and 392 assertions.
🔥 Elite Omega Features
- 🕵️ Stealth Pivot Masking: Automatically shields 2FA relationships from JSON/Array serialization.
- 🌍 Pluggable Geofencing: Interface-based geolocation (MaxMind, IPStack, or custom).
- ⚡ Performance Caching: In-memory status caching for millisecond-speed authentication checks.
- 🔑 Passkeys Ready: Foundational support for FIDO2/WebAuthn biometric keys.
- 📋 Audit Intelligence: Automated event logging for all critical security transitions.
- 🎨 Premium UI: Seamless Filament PHP integration and beautiful Blade components.
🛠️ Installation
composer require skywalker-labs/laraguard
1. Protect Your Models
Add the TwoFactorAuthentication trait to any authenticatable model:
use Skywalker\Laraguard\Traits\TwoFactorAuthentication; class User extends Authenticatable { use TwoFactorAuthentication; }
2. Configure Your Shield
Publish the configuration to customize your security tiers:
php artisan vendor:publish --provider="Skywalker\Laraguard\Providers\LaraguardServiceProvider"
⚡ Quick Usage
Enable 2FA
Confirm the TOTP code from a user's authenticator app to activate protection:
$user->confirmTwoFactorAuth($code);
Emergency Recovery
Generate high-entropy, encrypted recovery codes for absolute resilience:
$user->generateRecoveryCodes();
Trusted Devices
Allow users to "Remember this device" securely with IP-bound, expiring tokens:
if ($user->isSafeDevice($request)) { // High-speed bypass }
🛡️ Enterprise Grade Security
- Triple-Layer Encryption: Shared secrets and recovery codes are never stored in plain text.
- Event-Driven Resilience: Hooks into
TwoFactorEnabled,TwoFactorFailed, and more. - Zero-Config Discovery: Fully compatible with Laravel's package auto-discovery.
Credits & Support
Maintained with ❤️ by Skywalker-Labs.
Lead Architect: Mradul Sharma
Tip
Need custom security integration? Check our Documentation or contact the labs.
skywalker-labs/laraguard 适用场景与选型建议
skywalker-labs/laraguard 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 03 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Authentication」 「two-factor」 「laravel」 「2fa」 「skywalker」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 skywalker-labs/laraguard 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 skywalker-labs/laraguard 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 skywalker-labs/laraguard 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Filament Two Factor Authentication: Google 2FA + Passkey Authentication
Automatically logs-in users if they are already authenticated by a remote source. (e.g. environment variable REMOTE_USER)
GraphQL authentication for your headless Craft CMS applications.
Novactive eZ 2FA Bundle is an Ibexa bundle that provides two-factor authentication for your Ibexa project
Two-factor Authentication for WordPress
Laravel middleware to restrict a site or specific routes using HTTP basic authentication
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 35
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-03