PHPackages                             infrajs/contacts - 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. infrajs/contacts

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

infrajs/contacts
================

Contact form

v1.0.43(4y ago)01.2k[2 issues](https://github.com/infrajs/contacts/issues)2PHP

Since Oct 30Pushed 3y ago2 watchersCompare

[ Source](https://github.com/infrajs/contacts)[ Packagist](https://packagist.org/packages/infrajs/contacts)[ RSS](/packages/infrajs-contacts/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)Dependencies (8)Versions (44)Used By (2)

Форма контактов для Infrajs
===========================

[](#форма-контактов-для-infrajs)

Установка через composer.json
-----------------------------

[](#установка-через-composerjson)

```
{
	"require":{
		"infrajs/infrajs":"~1",
		"infrajs/contacts":"~1"
	}
}
```

Использование с [infrajs](https://github.com/infrajs/infrajs)
-------------------------------------------------------------

[](#использование-с-infrajs)

```

```

Форма во всплывающем окне

```
Форма контактов
```

Форма на странице

```

	import { Event } from '/vendor/infrajs/event/Event.js'
	import { Controller } from '/vendor/infrajs/controller/src/Controller.js'
	Event.one('Controller.onshow', function () {
		Controller.check({
			"div":"form",
			"tplroot":"form",
			"external":"-contacts/contacts.layer.json"
		});
	});

```

Перезвонить
-----------

[](#перезвонить)

```
Popup.show({
	"external":"-contacts/callback/layer.json"
});
```

### file=true

[](#filetrue)

Опция позволяет прикреплять к сообщению файл, который будет сохранён в папке .contacts/ рядом с самим собщением. Шаблон нужно вручную переопределить и добавить соответствующий input с name="file" и type="file". Дополнительно сообщение также нужно добавить в шаблон письма. В даннык к письму придёт параметр file который будет содержать путь до сохранённого файла. Ограничение на размер файла filesize в мегабайтах.

### data-text и data-replace

[](#data-text-и-data-replace)

Атрибут у тега с `showContacts`

- `data-text=""` - добавляет сообщение в форму контактов если там ещё сообщения нет
- `data-replace=""` - заменяет сообщение в форме контактов на новое

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 98.6% 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 ~51 days

Recently: every ~66 days

Total

43

Last Release

1703d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/341a8ef8a06866ad99b1bbcf0216fd8e331b076b1690a7d992c386192674b787?d=identicon)[akiyatkin](/maintainers/akiyatkin)

---

Top Contributors

[![akiyatkin](https://avatars.githubusercontent.com/u/953753?v=4)](https://github.com/akiyatkin "akiyatkin (143 commits)")[![ange187](https://avatars.githubusercontent.com/u/13964595?v=4)](https://github.com/ange187 "ange187 (1 commits)")[![lyuusen](https://avatars.githubusercontent.com/u/16210916?v=4)](https://github.com/lyuusen "lyuusen (1 commits)")

### Embed Badge

![Health badge](/badges/infrajs-contacts/health.svg)

```
[![Health](https://phpackages.com/badges/infrajs-contacts/health.svg)](https://phpackages.com/packages/infrajs-contacts)
```

###  Alternatives

[gdarko/wp-batch-processing

Easily process large batches of data in WordPress. Provide the data, setup the processing procedure, run the batch processor from the admin dashboard. Profit.

1295.5k](/packages/gdarko-wp-batch-processing)

PHPackages © 2026

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