Download the PHP package eightynine/easyauth without Composer

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

EasyAuth Client Plugin

This guide is for a developer who has never wired SSO before. Follow the steps exactly.

Overview

Step 1: Create a client on the EasyAuth server

  1. Log in to the EasyAuth admin panel.
  2. Create a new OAuth client.
  3. Copy the Client ID and Client Secret.
  4. Add your app’s callback URL. Example:

The callback URL is provided by this package (it’s always your APP_URL + the callback route). You can also print it by running php artisan easyauth:install --publish.

You need these values for your app’s .env in Step 4.

Step 2: Install the plugin in your app

Run this in your Laravel/Filament app:

This adds the routes and publishes the config file.

Step 3: Ensure your app has sessions enabled

The plugin uses sessions to store the OAuth state, tokens, and login status. Make sure:

Step 4: Add the EasyAuth settings to your .env

Use the values from Step 1:

Everything else can be configured in config/easyauth.php (published in Step 2).

Step 5: Send users to /auth/login

This route is provided by the plugin. Example:

When a user visits /auth/login, the plugin redirects them to:

Optional: use the built-in "Continue with Easy Auth" button

The plugin provides a Blade component you can drop into any Blade view:

This renders a branded button linking to route('sso.login').

Optional: override your app's login route

If you want /login (or other paths) to redirect into the EasyAuth flow, enable route overrides in config/easyauth.php:

Step 6: What happens on callback (automatic)

After login, EasyAuth redirects back to your callback URL with a code.

The plugin does this automatically:

  1. Exchanges the code for tokens at /oauth/token.
  2. Calls /api/oauth/userinfo to fetch the user profile.
  3. Finds or creates a local user.
  4. Logs the user into your app.
  5. Redirects to the intended URL, falling back to easyauth.post_login_redirect.

You do not need to write this logic yourself.

Step 7: Logout

POST /auth/logout to:

  1. Log out locally.
  2. Redirect the user to EasyAuth logout.

Routes provided by the plugin

User mapping (when the user does not exist locally)

The plugin creates a local user using:

If your users are matched by another field, set those keys in .env.

Common issues and fixes


All versions of easyauth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/auth Version ^12.0
illuminate/cache Version ^12.0
illuminate/console Version ^12.0
illuminate/http Version ^12.0
livewire/livewire Version ^3.5
laravel/passport Version ^13.0
illuminate/support Version ^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 eightynine/easyauth contains the following files

Loading the files please wait ...