stellarsecurity / user-laravel
Stellar Security - User API client for Laravel (register, login, password reset, profile lookups).
Package info
github.com/StellarSecurity-Packages/stellarsecurity-user-laravel
pkg:composer/stellarsecurity/user-laravel
Requires
- php: >=8.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 1.0.4
- 1.0.3
- v1.0.2.6
- v1.0.2.5
- v1.0.2.4
- v1.0.2.3
- v1.0.2.2
- v1.0.2.1
- v1.0.2
- v1.0.1
- v1.0.0
- dev-codex/scanner-log-reader-20260916
- dev-codex/shared-scanner-release-20260916
- dev-codex/scanner-release-20260916-r2
- dev-codex/scanner-release-20260916
- dev-codex/github-commit-trigger-v2-81f07bd7fa35
- dev-codex/github-commit-trigger-cf74b1bfd96b
- dev-codex/commit-guard-35bf5414ead5
- dev-codex/code-push-9f1b90e39be6
This package is not auto-updated.
Last update: 2026-09-28 22:15:40 UTC
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.