Download the PHP package entegration/laravel-entra-id without Composer

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

Laravel Entra ID Integration

A Laravel package for seamless Microsoft Entra ID (Azure AD) authentication integration using Laravel Socialite.

Features

Requirements

Installation

1. Install the Package

Add the package to your Laravel project:

2. Run the Installation Command

Run the installation wizard:

This command will:

3. Configure Azure AD

Add your Azure AD credentials to your .env file:

4. Set Up Azure AD Application

  1. Go to Azure Portal
  2. Navigate to Azure Active Directory > App registrations
  3. Create a new registration or use an existing one
  4. Add a redirect URI: http://your-domain/oauth/login
  5. Note your Application (client) ID, Directory (tenant) ID, and create a client secret

Configuration

The package configuration is stored in config/entra.php. You can customize the following settings:

Environment Variables

Configuration Options

Usage

Routes

The package automatically registers the following routes:

Basic Authentication

Add a login button to your view:

Custom Redirect After Login

You can customize the redirect URL in EntraAuthController:

Custom Claims

To extract custom claims from Azure AD (e.g., student ID, employee number):

  1. Configure the claim name and column in .env:

  2. Ensure the migration includes the custom column (this is handled automatically)

  3. The custom data will be automatically saved to the specified column

Disable Auto Registration

To restrict login to existing users only:

When disabled, users not found in the system will receive a 403 error.

Database Migration

The package adds the following columns to your users table:

Run migrations:

Advanced Configuration

Custom User Model

If you're using a different user model:

  1. Set ENTRA_MODEL in .env:

  2. Ensure your model extends Illuminate\Foundation\Auth\User

Custom Table Name

To use a different table:

Multiple Custom Claims

Currently, the package supports one custom claim. For multiple claims, you may need to extend the EntraIdService class.

Troubleshooting

Common Issues

Issue: "Login Failed" error

Issue: "Your account was not found in the system"

Issue: Custom claim not being saved

Security Considerations

Support

For issues, questions, or contributions, please open an issue on the package repository.

License

This package is open-sourced software licensed under the MIT license.

Author

Emrah Yıldız


All versions of laravel-entra-id with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0
laravel/socialite Version ^5.0
socialiteproviders/microsoft-azure Version ^5.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 entegration/laravel-entra-id contains the following files

Loading the files please wait ...