tarek/fsa
Composer 安装命令:
composer require tarek/fsa
包简介
Full Sanctum Authentication
README 文档
README
FSA Package stands for Full Sanctum Authentication Package
FSA Features:
- Must Verify Email.
- Can Reset Password.
- Socialite Login.
Installation Guide
composer require tarek/fsa
php artisan vendor:publish --provider="Tarek\Fsa\FSAServiceProvider" or php artisan vendor:publish --tag=fsa
php artisan migrate
These credentials should be placed in your application's config/services.php configuration file, depending on the providers your application requires
for Example
'<your-provider>' => [
'client_id' => env('<your-provider>_CLIENT_ID'),
'client_secret' => env('<your-provider>_CLIENT_SECRET'),
'redirect' => env('<your-provider>_REDIRECT'),
],
To reference your <your-provider>_CLIENT_ID and <your-provider>_CLIENT_SECRET and <your-provider>_REDIRECT
you have to adapt your .env file and set your keys and values from your providers
for Example:
GOOGLE_CLIENT_ID=xyz GOOGLE_CLIENT_SECRET=123 GOOGLE_REDIRECT=<your-domain>/api/auth/<your-provider>/callback
Afterwards, include the authentication routes in your route/api.php using:
require __DIR__ . '/Authentication/authentication.php';
Afterwards, Implement the following implementation in your Models/User.php Model using:
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordImplementation;
implements MustVerifyEmail, CanResetPasswordImplementation
Then use Traits
use Illuminate\Auth\Passwords\CanResetPassword;
use Tarek\Fsa\Traits\Providers;
use Tarek\Fsa\Traits\CheckEmailVerifyImplementation;
use Tarek\Fsa\Traits\FsaProfile;
use CanResetPassword, FsaProfile, Providers, CheckEmailVerifyImplementation;
License
The FSA Package is open-sourced software licensed under the MIT license.
tarek/fsa 适用场景与选型建议
tarek/fsa 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 22 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 06 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 tarek/fsa 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tarek/fsa 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-24