PHPackages                             flamix/b24-lead - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. flamix/b24-lead

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

flamix/b24-lead
===============

B24 Lead SDK

v1.11.1(1mo ago)82.4k21PHPPHP &gt;=7.4

Since Jan 14Pushed 1mo agoCompare

[ Source](https://github.com/FLAMIXSOFTWARE/b24-lead)[ Packagist](https://packagist.org/packages/flamix/b24-lead)[ Docs](https://flamix.solutions)[ RSS](/packages/flamix-b24-lead/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (4)Versions (21)Used By (1)

[![Screenshot](img/header.jpg)](img/header.jpg)

Site - Docs with API and examples -

Install
-------

[](#install)

```
composer require flamix/b24-lead
```

Usage
-----

[](#usage)

```
try {
    //If need change APP use changeSubDomain('wpapp') method
    \Flamix\Bitrix24\Lead::getInstance()->auth('YOUR.BITRIX24.COM', 'YOUR.API.KEY')->send(['FIELDS' => ['name' => 'Roman']]);
} catch (\Exception $e) {
    $e->getMessage();
}
```

Switch plugin
-------------

[](#switch-plugin)

This SDK can works with many all our "Website Integration". For default its work with general app - Site integrations. If you want switch to another module, please, youse method change changeSubDomain(). For example, if you installed "Integration with frameworks: Laravel, Symfony, Zend and Yii":

```
try {
    //If need change APP use changeSubDomain() method
    \Flamix\Bitrix24\Lead::getInstance()->changeSubDomain('leadframework')->auth('YOUR.BITRIX24.COM', 'YOUR.API.KEY')->send(['FIELDS' => ['name' => 'Roman']]);
} catch (\Exception $e) {
    $e->getMessage();
}
```

#### Module domains:

[](#module-domains)

- lead - Website Integration (Default);
- leadframework - Integration with frameworks: Laravel, Symfony, Zend and Yii

SmartUTM
--------

[](#smartutm)

When we didn't have UTM source, but have REFERER (for example, facebook.com) - we can set UTM\_SOURCE=facebook.com Put this code in header sections in every page.

```
\Flamix\Bitrix24\SmartUTM::init();
```

Trace
-----

[](#trace)

Trace save visited pages and user devise.

```
\Flamix\Bitrix24\Trace::setPage('Your page title');
```

Trace &amp; SmartUTM
--------------------

[](#trace--smartutm)

```
\Flamix\Bitrix24\Trace::init('Your page title');
```

Auto analytics
--------------

[](#auto-analytics)

On `send()` the SDK enriches the lead with analytics data collected from the visitor's cookies (unless disabled with `disableAutoAnalytics()`):

FieldSource cookiePlatform`GA_UID``_ga`Google Analytics`FB_UID``_fbp`Facebook Pixel`YM_UID``_ym_uid`Yandex Metrika`TT_UID``_ttp`TikTok Pixel`ROISTAT_VISIT_ID``roistat_visit`Roistat> Make sure the matching user fields exist on the Bitrix24 side, otherwise the values are ignored.

### Click ids

[](#click-ids)

`Trace::init()` also captures ad click ids from the URL and stores them in a 7-day cookie, so they survive until the lead is submitted:

- `gclid` — Google Ads click id
- `ttclid` — TikTok click id

These click ids are folded into `UF_CRM_FX_CONVERSION` by `flamix/conversions`(requires `^1.1` for TikTok support).

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance91

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

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 ~104 days

Recently: every ~0 days

Total

20

Last Release

45d ago

PHP version history (2 changes)1.0PHP &gt;=7.0

v1.7.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16613944?v=4)[flamix](/maintainers/flamix)[@flamix](https://github.com/flamix)

---

Top Contributors

[![rshkabko](https://avatars.githubusercontent.com/u/33148760?v=4)](https://github.com/rshkabko "rshkabko (21 commits)")

---

Tags

bitrix24

### Embed Badge

![Health badge](/badges/flamix-b24-lead/health.svg)

```
[![Health](https://phpackages.com/badges/flamix-b24-lead/health.svg)](https://phpackages.com/packages/flamix-b24-lead)
```

###  Alternatives

[nullpunkt/lz-string-php

PHP Class implementation of LZ-String javascript.

110561.3k22](/packages/nullpunkt-lz-string-php)

PHPackages © 2026

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