Download the PHP package geniusauth/laravel without Composer

On this page you can find all versions of the php package geniusauth/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel

# GeniusAuth™ Laravel SDK ### Passwordless identity for Laravel — Passkeys, WebAuthn, OAuth 2.1 & OpenID Connect **One Identity. Every Application. Zero Passwords.** [![Packagist Version](https://img.shields.io/packagist/v/geniusauth/laravel?style=for-the-badge&logo=packagist&logoColor=white)](https://packagist.org/packages/geniusauth/laravel) [![CI](https://img.shields.io/github/actions/workflow/status/GeniusAuth/laravel-sdk/tests.yml?style=for-the-badge&logo=githubactions&logoColor=white&label=CI)](https://github.com/GeniusAuth/laravel-sdk/actions) [![PHP](https://img.shields.io/badge/PHP-8.3%2B-777BB4?style=for-the-badge&logo=php&logoColor=white)](https://www.php.net/) [![Laravel](https://img.shields.io/badge/Laravel-11%20%7C%2012-FF2D20?style=for-the-badge&logo=laravel&logoColor=white)](https://laravel.com/) [![License](https://img.shields.io/packagist/l/geniusauth/laravel?style=for-the-badge&logo=mit&logoColor=white)](LICENSE) [Documentation](https://docs.geniusauth.com/laravel) · [Report a bug](https://github.com/GeniusAuth/laravel-sdk/issues) · [Request a feature](https://github.com/GeniusAuth/laravel-sdk/issues)

✨ Features

📦 Installation

The service provider is auto-discovered by Laravel. No manual registration needed.

⚙️ Configuration

Create an application in the GeniusAuth dashboard, then set your credentials in .env:

Config options

Key Default Description
issuer https://auth.geniuspay.tech GeniusAuth OIDC issuer URL
client_id Your application client ID
client_secret Your application client secret
redirect_uri Callback URL registered in the dashboard
scopes ['openid', 'profile', 'email'] OpenID Connect scopes to request
session_key geniusauth.user Session key for the authenticated identity

🚀 Quick Start

1. Protect routes

2. Trigger sign-in

3. Access the authenticated user

4. Logout

🔄 How it works

🛣️ Identity Linking

The SDK includes built-in support for bidirectional identity linking between your application and GeniusAuth. This lets users connect their GeniusAuth account to your app from either side.

How it works

Configuration

Add these to your .env:

The sync_api_key is generated when you register your app in GeniusAuth. It authenticates calls to the POST /api/sync endpoint.

Registered routes

The SDK automatically adds these routes for linking:

Method URI Name Description
GET /geniusauth/link geniusauth.link Receives the redirect from GeniusAuth, stores state, authenticates user if needed
GET /auth/genius/link/complete geniusauth.link.complete Post-OIDC-callback handler that completes a pending link

Usage

From GeniusAuth (user initiates on connected-apps page)

GeniusAuth redirects to your app's link_url (configured in the GeniusAuth dashboard). The SDK handles everything automatically — no code needed.

From your app (user initiates locally)

Custom link URL

By default the SDK registers /geniusauth/link. To use a custom controller instead, set GENIUSAUTH_LINK_URL in your .env and register your own route. The GeniusAuth dashboard should point to whatever URL you configure.

The package automatically registers these routes:

Method URI Name Description
GET /auth/genius geniusauth.login Redirects to GeniusAuth authorization endpoint
GET /auth/genius/callback geniusauth.callback Handles the OAuth callback and token exchange
POST /auth/genius/logout geniusauth.logout Clears session and invalidates tokens

📚 API Reference

Facades

Method Returns Description
GeniusAuth::redirect() RedirectResponse Starts OAuth 2.1 Authorization Code flow with PKCE
GeniusAuth::user() array\|null Returns the session-backed authenticated identity
GeniusAuth::logout() void Clears GeniusAuth tokens and invalidates the session
GeniusAuthLink::handleLinkRequest($request) RedirectResponse Handles incoming link redirect from GeniusAuth
GeniusAuthLink::completeLink($request) RedirectResponse\|null Completes a pending link after OIDC callback

Contracts (for dependency injection)

Interface Methods Default implementation
OidcClientInterface redirect(), handleCallback(), user(), logout() OidcClientService
TokenValidatorInterface validateIdentityToken() OidcTokenValidator
LinkFlowInterface handleLinkRequest(), completeLink() LinkFlowService
SyncClientInterface syncToGeniusAuth(), lookupByGeniusId() GeniusAuthSyncClient
StaffSyncInterface syncFromClaims() StaffSyncService
UserRepositoryInterface findByEmailOrGeniusId(), create(), getRoleMapping() ConfigUserRepository

Example: Complete controller

🏗️ Architecture

The SDK follows a modular Domain-Driven Design (DDD) architecture:

Extending the SDK

All services are bound to interfaces. You can override any binding in your own service provider:

Backward compatibility

Concrete class aliases are registered for backward compatibility but are deprecated and will be removed in v1.0. Inject the interface instead.

🔒 Security

Never commit client secrets. Report vulnerabilities privately as described in SECURITY.md.

🧩 Compatibility

Requirement Version
PHP 8.3, 8.4
Laravel 11, 12

🤝 Contributing

See Conventional Commits and run:

📄 License

GeniusAuth Laravel SDK is open-sourced software licensed under the MIT license.

© 2025 **GENIUS GROUPS SAS** — Built in Côte d'Ivoire 🇨🇮 · Designed for Africa · Ready for the World

All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
firebase/php-jwt Version ^7.0
illuminate/contracts Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/routing Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package geniusauth/laravel contains the following files

Loading the files please wait ...