Download the PHP package laragear/multi-auth without Composer

On this page you can find all versions of the php package laragear/multi-auth. 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 multi-auth

Laragear MultiAuth

Latest Version on Packagist Latest stable test run Codecov coverage Maintainability

Authenticate multiple Composer packages from the same host using different credentials.

Why this package?

Composer natively associates authentication credentials (like HTTP Basic, Bearer tokens, GitHub OAuth) with a single domain inside the auth.json file. If you have a private package registry serving multiple packages under the same domain (e.g. keygen.sh or github.com), you cannot easily use different credentials for different packages.

This plugin allows you to define authentication credentials per-package, overriding the default domain-based authentication, plus two useful authentication mechanisms:

Become a sponsor

Your support allows me to keep this package free, up-to-date, and maintainable. Alternatively, you can spread the word!

Requirements

Installation

Require this package globally or into your project using Composer:

[!IMPORTANT]

If you require this in your project, the plugin will be active only for a single Composer project.

Usage

Instead of manually editing your auth.json file, use the provided multi-auth:config command. The command accepts the package name, the authentication type, and the required credentials:

Authentication Types

The following authentication types are supported:

HTTP Basic

Standard HTTP Basic authentication.

Bearer Token

Standard Authorization Bearer token.

GitHub / GitLab

Token-based authentication for GitHub or Gitlab.

License Key

Adds a custom Authentication: License <KEY> header.

Custom Query Parameters

You can append custom query parameters to the package download URL. This is especially useful for passing tokens as URL parameters.

This will automatically append ?auth=license:{TOKEN} to the URL when Composer downloads vendor/package, where {TOKEN} is automatically resolved from your environment variables.

Global Configuration

If you want to apply the configuration globally across all your Composer projects, append the --global (or -g) flag.

[!NOTE]

This will only work if Multiauth was installed globally.

Environment Variables

You can use environment variables in any of your credentials too! Prefix the variable name with a $ sign. Append \ to avoid the shell replacing the variable name with an environment value.

When Composer downloads the package, the plugin will automatically resolve $MY_SECRET_TOKEN from your current environment.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.


All versions of multi-auth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
composer-plugin-api Version ^2.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 laragear/multi-auth contains the following files

Loading the files please wait ...