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)049MITPHP

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 3w 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

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

3253d ago

Major Versions

1.0.1 → 2.0.02017-07-31

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19505875?v=4)[Zaboev Eduard](/maintainers/zedsh)[@zedsh](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[overtrue/socialite

A collection of OAuth 2 packages.

1.4k5.6M90](/packages/overtrue-socialite)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

121242.9k1](/packages/ellaisys-aws-cognito)

PHPackages © 2026

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