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(2y ago)369MITPHPPHP ^8.1|8.2|8.3

Since Apr 9Pushed 2y 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 3d 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

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

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

774d 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

[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M887](/packages/laravel-socialite)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)

PHPackages © 2026

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