stellarsecurity/user-laravel
Composer 安装命令:
composer require stellarsecurity/user-laravel
包简介
Stellar Security - User API client for Laravel (register, login, password reset, profile lookups).
README 文档
README
Small Laravel helper package that talks to the Stellar User API
(create users, login, password reset, profile lookups).
Install
composer require stellarsecurity/user-laravel
Laravel package auto-discovery will register the service provider and facade.
Configure
Publish the config (optional):
php artisan vendor:publish --provider="StellarSecurity\UserApiLaravel\StellarUserServiceProvider" --tag=config
In your .env you must point to the real secrets used for basic auth:
# Which env vars actually contain the username/password STELLAR_USER_USERNAME_KEY=APPSETTING_API_USERNAME_STELLAR_USER_API STELLAR_USER_PASSWORD_KEY=APPSETTING_API_PASSWORD_STELLAR_USER_API # These keys must exist and contain the real credentials APPSETTING_API_USERNAME_STELLAR_USER_API=your-username APPSETTING_API_PASSWORD_STELLAR_USER_API=your-password # Optional: override base URL (for staging / local) STELLAR_USER_BASE_URL=https://stellaruserapiprod.azurewebsites.net/api/
Usage
You can type-hint the client:
use StellarSecurity\UserApiLaravel\UserApiClient; class RegisterController { public function store(UserApiClient $users) { $response = $users->create([ 'email' => 'user@example.com', 'password' => 'secret', ]); if ($response->failed()) { // handle error } return $response->json(); } }
Or use the facade:
use StellarSecurity\UserApiLaravel\Facades\StellarUser; // Create user $res = StellarUser::create([ 'email' => 'user@example.com', 'password' => 'secret', ]); // Login $auth = StellarUser::auth([ 'email' => 'user@example.com', 'password' => 'secret', ]); // Send reset password link StellarUser::sendResetPasswordLink('user@example.com', 'CONFIRM-CODE-123'); // Verify reset code + set new password StellarUser::verifyResetPasswordConfirmationCode( 'user@example.com', 'CONFIRM-CODE-123', 'new-password-here', ); // Fetch profile by ID $profile = StellarUser::user('123')->json();
What is Stellar Security?
Stellar Security is building a Swiss-based privacy & security ecosystem:
hardened phones, VPN, antivirus, secure cloud and developer SDKs.
This package is just a small building block – a clean Laravel wrapper
around the Stellar User API so your apps can register, authenticate and
manage Stellar users with a few lines of code.
stellarsecurity/user-laravel 适用场景与选型建议
stellarsecurity/user-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 408 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 stellarsecurity/user-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 stellarsecurity/user-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 408
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 33
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-29