PHPackages                             infrajs/controller - 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/controller

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

infrajs/controller
==================

Layer controller for php and javascript

v1.0.70(4y ago)03.5k19JavaScript

Since Jun 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/infrajs/controller)[ Packagist](https://packagist.org/packages/infrajs/controller)[ Docs](https://github.com/infrajs/controller)[ RSS](/packages/infrajs-controller/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (9)Dependencies (9)Versions (67)Used By (19)

Контроллер для формировании страницы из разных блоков-слоёв
===========================================================

[](#контроллер-для-формировании-страницы-из-разных-блоков-слоёв)

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

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

```
	{
		"require":{
			"infrajs/controller":"~1"
		}
	}

```

Использование
-------------

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

В корне проекта настроить [.htaccess](https://github.com/infrajs/router) и создать файл с описанием слоёв сайта index.json

```
{
	"tpl":["Привет"]
}

```

Работа со ссылками
------------------

[](#работа-со-ссылками)

Клик по ссылкам автоматическуи обрабатывается контроллером. Для отмены нужно у ссылки добавить атрибут data-crumb="false" event.preventDefault() если переход по ссылке не требуется нужно также выполнить самостоятельно или onclick="return false".

Кэш главной страницы
--------------------

[](#кэш-главной-страницы)

Можно добавить условие для кэширования главной страницы Event::handler('Controller.parsed', function () { Controller::$parsed .= 'Критерий нового кэша'; });

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 99.5% 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 ~38 days

Recently: every ~95 days

Total

66

Last Release

1533d 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 (579 commits)")[![oduvanio](https://avatars.githubusercontent.com/u/11479446?v=4)](https://github.com/oduvanio "oduvanio (2 commits)")[![serbbbb](https://avatars.githubusercontent.com/u/11554927?v=4)](https://github.com/serbbbb "serbbbb (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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