PHPackages                             crazybee47/laravel-bitrix24 - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. crazybee47/laravel-bitrix24

ActiveLibrary[HTTP &amp; Networking](/categories/http)

crazybee47/laravel-bitrix24
===========================

Laravel wrapper around OAuth2 Bitrix24 Rest API Application

1.0.14(1y ago)368MITPHPPHP ^8.1|8.2|8.3

Since Apr 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/crazybee69/laravel-bitrix24)[ Packagist](https://packagist.org/packages/crazybee47/laravel-bitrix24)[ Docs](https://github.com/crazybee69/laravel-bitrix24)[ RSS](/packages/crazybee47-laravel-bitrix24/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (21)Used By (0)

Introduction
============

[](#introduction)

Laravel wrapper around OAuth2 Bitrix24 Rest API for a quick start of a new application on Laravel + Bitrix24.

There are few methods implemented in the library for interacting with the API, they will be added gradually.

If you need more methods, you can extend BitrixService and make API requests using the `getApiClient` method, or `loadRecords` method for fetching all items from lists.

### Example:

[](#example)

```
class ExtendedBitrixService extends \Crazybee47\Laravel\Bitrix24\BitrixService {

    public function getContact(int $id): array {
        return $this->getApiClient()
            ->call('crm.contact.get', ['ID' => $id])
            ->getResponseData()
            ->getResult();
    }

    public function getContactList(array $filters = []): array {
        return $this->loadRecords('crm.contact.list', $filters);
    }
}
```

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

[](#installation)

Configuration
-------------

[](#configuration)

These credentials should be placed in your application's `config/services.php` configuration file:

```
'bitrix' => [
    'host' => 'https://example.bitrix24.ru',
    'client_id' => env('BITRIX_CLIENT_ID'),
    'client_secret' => env('BITRIX_CLIENT_SECRET'),
    'scopes' => explode(',', env('BITRIX_SCOPES', 'crm')),//crm,bizproc,telephony
]
```

Add the `bitrix/*` pattern to the list of VerifyCsrfToken middleware except list.

```
class VerifyCsrfToken extends Middleware
{
    protected $except = [
        'bitrix/*',
    ];
}
```

Setup Bitrix24 Rest API Application
-----------------------------------

[](#setup-bitrix24-rest-api-application)

- Handler path: `{APP_URL}/bitrix/oauth/callback`
- Install handler path: `{APP_URL}/bitrix/install`

By default, authorization data is saved at the time of application installation. It is also possible to manually authorize specific Bitrix24 user into the application. To do this, you need to direct the user to the link: `{APP_URL}/bitrix/oauth/redirect`

Setup App actions for Bitrix24
------------------------------

[](#setup-app-actions-for-bitrix24)

If you need to install webhooks or application actions for Business Processes when the application is installed into Bitrix24, you can listen the event: `Crazybee47\Laravel\Bitrix24\Events\OnAppInstalled`. To do this, register handler for it in your EventServiceProvider:

### Example:

[](#example-1)

```
protected $listen = [
    \Crazybee47\Laravel\Bitrix24\Events\OnAppInstall::class => [
        'App\Listeners\RegisterBitrixWebhooks@handle'
    ],
];
```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~21 days

Recently: every ~11 days

Total

20

Last Release

718d ago

PHP version history (2 changes)1.0.3PHP ^8.1

1.0.14PHP ^8.1|8.2|8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/29a6c7c8ca3ce77dd340e48c24a7db96618e5ae5e1b1663449a12fc410145241?d=identicon)[crazybee69](/maintainers/crazybee69)

---

Top Contributors

[![crazybee69](https://avatars.githubusercontent.com/u/32307323?v=4)](https://github.com/crazybee69 "crazybee69 (38 commits)")

---

Tags

phpapilaravelrestBitrix24

### Embed Badge

![Health badge](/badges/crazybee47-laravel-bitrix24/health.svg)

```
[![Health](https://phpackages.com/badges/crazybee47-laravel-bitrix24/health.svg)](https://phpackages.com/packages/crazybee47-laravel-bitrix24)
```

###  Alternatives

[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

9230.2k4](/packages/bitrix24-b24phpsdk)[laragear/api-manager

Manage multiple REST servers to make requests in few lines and fluently.

161.8k](/packages/laragear-api-manager)

PHPackages © 2026

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