PHPackages                             zedsh/laravel-b24-auth-guzzle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. zedsh/laravel-b24-auth-guzzle

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

zedsh/laravel-b24-auth-guzzle
=============================

Bitrix24 laravel Oauth middleware on Guzzle

2.0.0(8y ago)049↓100%MITPHP

Since Jul 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zedsh/laravel-b24-auth-guzzle)[ Packagist](https://packagist.org/packages/zedsh/laravel-b24-auth-guzzle)[ RSS](/packages/zedsh-laravel-b24-auth-guzzle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

laravel-bitrix24-guzzle
=======================

[](#laravel-bitrix24-guzzle)

This is middleware for lavarel that ensures the user has bitrix24 authorization token.

Features
========

[](#features)

Two step auth

Check expires

Refresh User Data on 2 step of auth

Check auth

Installation
============

[](#installation)

Step 1.

In .env:

B24\_HOSTNAME=https://\[yourhostname\].bitrix24.ru

B24\_CLIENT\_ID=

B24\_CLIENT\_SECRET=

Step 2. In app/Http/Kernel.php:

```
protected $routeMiddleware = [
    'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
    'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
    'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
    'can' => \Illuminate\Auth\Middleware\Authorize::class,
    'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
    'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
    //ADD THIS ->
    'b24auth'=>\zedsh\laravel\B24\Auth::class,
];

```

Step 3. In routes/web.php:

```
//Add middleware with param 'two' in root of site - two step of auth work over this.
Route::get('/', 'HomeController@index')->name('root page')->middleware('b24auth:two');
//Add middleware with param 'init' in both route of site, and step 1 auth work on this route. After auth work redirect to root and work step two.
Route::get('/b24_state', 'HomeController@getB24State')->name('b24_state')->middleware('b24auth:init');

```

For refresh user
================

[](#for-refresh-user)

In app/User.php:

//Add Method in User class:

```
public function B24Refresh()
{
Auth::user()->update(['b_user_id'=>$this->B24Creds()->user_id]);
}

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 70% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

3207d ago

Major Versions

1.0.1 → 2.0.02017-07-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d5fa043fa4550f4b16c140b8d809c4097c2bb4b9265c71e1af6f0ae9d9ef2d0?d=identicon)[zedsh](/maintainers/zedsh)

---

Top Contributors

[![zedsh](https://avatars.githubusercontent.com/u/19505875?v=4)](https://github.com/zedsh "zedsh (7 commits)")[![digitaldsdev](https://avatars.githubusercontent.com/u/111493492?v=4)](https://github.com/digitaldsdev "digitaldsdev (3 commits)")

### Embed Badge

![Health badge](/badges/zedsh-laravel-b24-auth-guzzle/health.svg)

```
[![Health](https://phpackages.com/badges/zedsh-laravel-b24-auth-guzzle/health.svg)](https://phpackages.com/packages/zedsh-laravel-b24-auth-guzzle)
```

###  Alternatives

[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[rahul900day/laravel-captcha

Different types of Captcha implementation for Laravel Application.

10715.9k](/packages/rahul900day-laravel-captcha)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)[descope/descope-php

Descope SDK for PHP

3814.0k](/packages/descope-descope-php)[njoguamos/laravel-turnstile

A laravel wrapper for https://developers.cloudflare.com/turnstile/

2315.9k2](/packages/njoguamos-laravel-turnstile)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
