Download the PHP package auth0/login without Composer

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

Auth0 Laravel SDK

The Auth0 Laravel SDK is a PHP package that integrates Auth0 into your Laravel application. It includes no-code user authentication, extensive Management API support, permissions-based routing access control, and more.

Requirements

Your application must use a our support policy for more information.

You will also need Composer and an Auth0 account.

Supported Laravel Releases

The next major release of Laravel is forecasted for Q1 2025. We anticipate supporting it upon release.

Laravel SDK PHP Supported Until
11.x 7.13+ 8.3 Approx. March 2026 (EOL for Laravel 11)
8.2 Approx. Dec 2025 (EOL for PHP 8.2)

We strive to support all actively maintained Laravel releases, prioritizing support for the latest major version with our SDK. If a new Laravel major introduces breaking changes, we may have to end support for past Laravel versions earlier than planned.

Affected Laravel versions will still receive security fixes until their end-of-life date, as announced in our release notes.

Maintenance Releases

The following releases are no longer being updated with new features by Auth0, but will continue to receive security updates through their end-of-life date.

Laravel SDK PHP Security Fixes Until
10.x 7.5 - 7.12 8.3 Feb 2025 (EOL for Laravel 10)
8.2 Feb 2025 (EOL for Laravel 10)
8.1 Nov 2024 (EOL for PHP 8.1)

Unsupported Releases

The following releases are unsupported by Auth0. While they may be suitable for some legacy applications, your mileage may vary. We recommend upgrading to a supported version as soon as possible.

Laravel SDK
9.x 7.0 - 7.12
8.x 7.0 - 7.4
7.x 5.4 - 6.5
6.x 5.3 - 6.5
5.x 2.0 - 6.1
4.x 1.x

Getting Started

The following is our recommended approach to getting started with the SDK. Alternatives are available in our expanded installation guide.

1. Install the SDK

2. Install the CLI

  1. Install the Auth0 CLI to manage your account from the command line.

    Move the CLI to a directory in your PATH to make it available system-wide.

    💡 If you prefer not to move the CLI, simply substitute `auth0` in the CLI steps below with `./auth0`.

    Using Homebrew (macOS)
    Using Scoop (Windows)
  2. Authenticate the CLI with your Auth0 account. Choose "as a user" if prompted.

3. Configure the SDK

  1. Register a new application with Auth0.

  2. Register a new API with Auth0.

  3. Add the new files to .gitignore.

    Using Windows PowerShell
    Using Windows Command Prompt

4. Run the Application

Boot the application using PHP's built-in web server.

Direct your browser to http://localhost:8000 to experiment with the application.

When you're ready to deploy your application to production, review our deployment guide for best practices and advice on securing Laravel.

Integration Examples

User Authentication   The SDK automatically registers all the necessary routes and authentication services within the `web` middleware group of your application to enable users to authenticate without requiring you to write any code. | Route | Purpose | | ----------- | ---------------------------------- | | `/login` | Initiates the authentication flow. | | `/logout` | Logs the user out. | | `/callback` | Handles the callback from Auth0. | If these routes conflict with your application architecture, you can override this default behavior by [adjusting the SDK configuration](./docs/Configuration.md#route-registration). ---
Route Authorization (Access Control)   The SDK automatically registers its authentication and authorization guards within the `web` and `api` middleware groups for your Laravel application, respectively. For `web` routes, you can use Laravel's `auth` middleware to require that a user be authenticated to access a route. For `api` routes, you can use Laravel's `auth` middleware to require that a request be authenticated with a valid bearer token to access a route. In addition to requiring that a user be authenticated, you can also require that the user have specific permissions to access a route, using Laravel's `can` middleware. Permissions require that [RBAC](https://auth0.com/docs/manage-users/access-control/rbac) be enabled within [your API settings](https://manage.auth0.com/#/apis). ---
Users and Tokens   Laravel's `Auth` Facade can be used to retrieve information about the authenticated user or token associated with a request. For routes using the `web` middleware group in `routes/web.php`. For routes using the `api` middleware group in `routes/api.php`. ---
Management API Calls   Once you've [authorized your application to make Management API calls](./docs/Management.md#api-application-authorization), you'll be able to engage nearly any of the [Auth0 Management API endpoints](https://auth0.com/docs/api/management/v2) through the SDK. Each API endpoint has its own SDK class which can be accessed through the Facade's `management()` factory method. For interoperability, network responses from the API are returned as [PSR-7 messages](https://www.php-fig.org/psr/psr-7/). These can be converted into native arrays using the SDK's `json()` method. For example, to update a user's metadata, you can call the `management()->users()->update()` method. All the SDK's Management API methods are [documented here](./docs/Management.md).

Documentation

You may find the following integration guidance useful:

You may also find the following resources helpful:

Contributions to improve our documentation are welcomed.

QuickStarts

Community

The Auth0 Community is where you can get support, ask questions, and share your projects.

Contributing

We appreciate feedback and contributions to this library. Before you get started, please review Auth0's General Contribution guidelines.

The Contribution Guide contains information about our development process and expectations, insight into how to propose bug fixes and improvements, and instructions on how to build and test changes to the library.

To provide feedback or report a bug, please raise an issue.

Code of Conduct

Participants are expected to adhere to Auth0's Code of Conduct when interacting with this project.

Security

If you believe you have found a security vulnerability, we encourage you to responsibly disclose this and not open a public issue. We will investigate all reports. The Responsible Disclosure Program details the procedure for disclosing security issues.

License

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


Auth0 Logo

Auth0 is an easy-to-implement, adaptable authentication and authorization platform.
To learn more, check out "Why Auth0?"


All versions of login with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
auth0/auth0-php Version ^8.10
illuminate/contracts Version ^11
illuminate/http Version ^11
illuminate/support Version ^11
psr-discovery/all Version ^1
psr/cache Version ^2 || ^3
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 auth0/login contains the following files

Loading the files please wait ....