Download the PHP package codebar-ag/laravel-microsoft-entra-sso without Composer

On this page you can find all versions of the php package codebar-ag/laravel-microsoft-entra-sso. 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-microsoft-entra-sso

Latest Version on Packagist Total Downloads GitHub-Tests GitHub Code Style PHPStan Dependency Review

Microsoft Entra ID (Azure AD) SSO authentication package for Laravel using OAuth2 + OpenID Connect.

Requirements

Installation

Publish config (optional, recommended):

Publish package translations (recommended if you want to customize text or add locales):

Configuration

Set these environment variables:

Configure guards in config/microsoft-entra-sso.php:

The configured model must implement CodebarAg\MicrosoftEntraSSO\Contracts\SSOAuthenticatable (typically via the HasMicrosoftSSO trait).

Security and flow options

The package supports additional hardening options:

HTTP behavior

OAuth and Graph calls can be tuned:

Use these values to set environment-specific resiliency for slow networks or transient upstream failures.

Routes and controllers

The package registers two routes under the configured prefix (sso/microsoft by default):

Named routes remain:

Socialite-like API usage

The facade resolves a manager/factory contract and supports driver resolution similar to Socialite:

Under the hood the provider offers:

Services and methods

Service resolution

Resolve the OAuth provider via facade/manager:

Resolve services directly from the container:

Provider API (OAuth)

Static helpers on MicrosoftOAuthService:

Graph API helper service

Model trait API (HasMicrosoftSSO)

Data objects

SSOToken helpers:

SSOUser helpers:

Blade usage

Use the bundled button component in your login view:

You can override the label with a translation key:

Translations

The package ships with JSON translations for:

After publishing (microsoft-entra-sso-translations), you can:

Tailwind v4 (plain Tailwind, no Flux)

This package does not require Flux or any frontend UI dependency.

If you use the provided Blade component styles, ensure Tailwind v4 scans the package classes. Add a source path in your app stylesheet:

If your package is installed from vendor/, point @source at the vendor path instead:

Alternative: publish views and scan resources/views/vendor/microsoft-entra-sso/**/*.blade.php.

Events and extension points

The package dispatches:

Both events are emitted during the callback flow after the package authenticates or registers a user.

You can listen to these events to add:

Troubleshooting

Quality Checks

Run linting:

Run static analysis:

composer analyse runs PHPStan/Larastan using phpstan.neon.dist at level 9.

Run package tests:

Run coverage with enforced minimum:


All versions of laravel-microsoft-entra-sso with dependencies

PHP Build Version
Package Version
Requires php Version 8.3.*|8.4.*|8.5.*
illuminate/contracts Version ^13.0
illuminate/http Version ^13.0
illuminate/routing Version ^13.0
illuminate/support Version ^13.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 codebar-ag/laravel-microsoft-entra-sso contains the following files

Loading the files please wait ...