Download the PHP package bijon/laravel-auth without Composer

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

bijon/laravel-auth

Authentication integrations for Laravel: Google OAuth2 and CAPTCHA verification (Cloudflare Turnstile, Google reCAPTCHA v3), built for Laravel 12/13 apps — especially Vue 3 SPAs using Sanctum cookie auth.

Features

Requirements

Installation

The service provider, facades, middleware alias, and validation rule are registered via package auto-discovery. Publish the config:

Set your environment variables:

Quick start — Google OAuth

The package returns typed DTOs and fires events; your app writes the routes and owns the User model:

Listen to the event to find-or-create your user and log them in:

Quick start — Captcha

Set the env vars for either Turnstile or reCAPTCHA v3 — the package detects which one you configured. Then guard any route with the middleware:

Or compose it into validation:

Or call the service directly — the Captcha facade always talks to the detected provider:

Captcha::detect(), Captcha::siteKey(), and Captcha::inputName() give your frontend everything it needs without hardcoding a provider. Existing Turnstile integrations (turnstile middleware/rule, Turnstile facade) keep working unchanged.

Frontend bootstrap in one line

Instead of wiring those pieces up separately, drop the whole frontend config into your blade layout with the @captchaConfig directive:

Pass an array to merge extra data into the JSON (your keys win over the defaults):

The directive is equivalent to @json(\Bijon\LaravelAuth\Facades\Captcha::frontendConfig()), which you can still call directly — frontendConfig(array $extra = []) accepts the same merge argument. It returns null (the directive prints literal null, still valid JSON) when no captcha provider is configured — even when $extra is non-empty, since no provider means there is no widget to render. Otherwise:

Your SPA can then render the active widget without knowing which provider is behind it:

params carries provider-specific extras (for reCAPTCHA v3, the actionlaravel-auth.recaptcha.action, defaulting to login). Each provider's script URL can be overridden with a script_url config key.

Documentation

Guide Contents
Installation Install, publish config, provider dashboards setup
Configuration Every config key, env vars, error behavior
GoogleOAuth Full OAuth API, state handling, events, errors
Captcha Provider system, auto-detection, manager, custom providers
Turnstile verify/verifyOrFail, response fields, events
Recaptcha reCAPTCHA v3: score/action checks, frontend token flow
Middleware The captcha/turnstile middleware and failure modes
Validation String and object validation rules
Facades GoogleOAuth and Turnstile facades
DependencyInjection Injecting the interfaces, swapping implementations
Testing Faking Google, Turnstile, and reCAPTCHA in your app's tests
VueIntegration Vue 3 SPA + Sanctum cookie auth, end to end
Examples Runnable controller/listener snippets
Publishing Release process and semver policy
UpgradeGuide Upgrade notes between versions

Testing

License

MIT — see LICENSE.


All versions of laravel-auth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
composer/ca-bundle Version ^1.5
illuminate/contracts Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/session Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
illuminate/validation Version ^12.0|^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 bijon/laravel-auth contains the following files

Loading the files please wait ...