PHPackages                             f00x/anti-bitrix - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. f00x/anti-bitrix

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

f00x/anti-bitrix
================

A set of classes for easy operation. With the database and Bitrix settings.In case the bitrix code does not work for you =) See the examples in the file. See the readme.md file for examples.

01.00.07(7y ago)013GPL-2.0-or-laterPHPPHP &gt;=5.6.0

Since Sep 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/f00x/anti-bitrix)[ Packagist](https://packagist.org/packages/f00x/anti-bitrix)[ RSS](/packages/f00x-anti-bitrix/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

anti bitrix library
===================

[](#anti-bitrix-library)

Current Package. This is a set of classes that realizes an alternative to standard work.

Installation
------------

[](#installation)

### Composer (recommended)

[](#composer-recommended)

Use [Composer](https://getcomposer.org) to install this library from Packagist: [`f00x/anti-bitrix`](https://packagist.org/packages/google/recaptcha)

Run the following command from your project directory to add the dependency:

```
composer require f00x/anti-bitrix
```

Alternatively, add the dependency directly to your `composer.json` file:

```
"require": {
    "f00x/anti-bitrix":""
}
```

Example use.

```
use f00x\AntiBitrix;
require_once '\\vendor\\autoload.php';
$recaptcha = new \ReCaptcha\ReCaptcha($secret);
/**
$settingsBitrix = require( dirname($_SERVER["DOCUMENT_ROOT"]) . "/bitrix/.settings.php" );
*/
$settingsBitrix=array(
    /* Other bitrix param bitrix/.settings.php */
    'connections' =>
    array(
        'value' =>
        array(
            'default' =>
            array(
                'className' => '\\Bitrix\\Main\\DB\\MysqliConnection',
                'host' => 'hostDB',
                'database' => 'test',
                'login' => 'root',
                'password' => 'password',
                'options' => 2.0,
            ),
        ),
        'readonly' => true,
    ),
    'anti_bitrix' => [
        'smtp' => [
            'host' => 'smtp.example.com',
            'port' => '465',
            'username' => 'from',
            'password' => 'password',
            'encryption' => 'ssl',
            'is_ntlm' => false,
            'from' => 'from@example.com'
        ],
        're_captcha'=>[
            'site_key'=>'key',
            'secred_key'=>'key2',

        ]
    ],
);

$ConfigManager = new AntiBitrix\ConfigManager($settingsBitrix);
$Proxy = new AntiBitrix\ProxyForm($ConfigManager);

$FormManager = new AntiBitrix\FormManager($ConfigManager->getMysqlPDOConnect());
// 1 - id form in bitrix admin
$Form = $FormManager->getFormObject('1');
if ($Form instanceof Form) {
$Proxy->addForm($Form);
$Proxy->proxyPostDataForm();
}
```

Learn about the successful completion of the form and CAPTCHA can be so.

```
// 1 - id form in bitrix admin
if($Proxy->isSuccess(1))
{/* print message and other */
}
```

Send Email
----------

[](#send-email)

### basic use case

[](#basic-use-case)

This package also allows -Create letters by template. -To do dispatch on data and object of dispatch

```
$SendManager = new SmtpMessageManager($ConfigManager->getMysqlPDOConnect());
$SendManager->setSmtp($ConfigManager->getSmtpMailer());
$SendManager->sendMsgForm($Form)
```

"Template" and "Sending" are taken from the database based on the key (table `b_form` column `MAIL_EVENT_TYPE`)

Step cofig bitrix form send email

1. create form and fill "Event IDs:"-&gt;"event1:" (table `b_form` column `MAIL_EVENT_TYPE`)
2. create "Email event types" item (set MAIL\_EVENT\_TYPE value)
3. create "E-Mail templates" item
4. create "Newsletter categories" item

### Custom use

[](#custom-use)

Create custom class by "MessageManagerInterface" A basic example in the source code of a class "SmtpMessageManager"

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

5

Last Release

2866d ago

Major Versions

00.01.00 → 01.00.002018-09-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18509001?v=4)[Evgeniy Lisin](/maintainers/f00x)[@f00x](https://github.com/f00x)

---

Top Contributors

[![f00x](https://avatars.githubusercontent.com/u/18509001?v=4)](https://github.com/f00x "f00x (11 commits)")

---

Tags

emailbitrixform

### Embed Badge

![Health badge](/badges/f00x-anti-bitrix/health.svg)

```
[![Health](https://phpackages.com/badges/f00x-anti-bitrix/health.svg)](https://phpackages.com/packages/f00x-anti-bitrix)
```

PHPackages © 2026

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