PHPackages                             akiyatkin/layer-conf - 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. akiyatkin/layer-conf

ActiveLibrary

akiyatkin/layer-conf
====================

v1.0.4(5y ago)0153JavaScript

Since Sep 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/akiyatkin/layer-conf)[ Packagist](https://packagist.org/packages/akiyatkin/layer-conf)[ RSS](/packages/akiyatkin-layer-conf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (6)Used By (0)

Передача конфига в шаблон
=========================

[](#передача-конфига-в-шаблон)

Данные из конфига [.infra.json](https://github.com/infrajs/config) расширений можно передать в [шаблон](https://github.com/infrajs/controller)

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

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

```
{
	"require":{
		"akiyatkin/layer-conf":"~1"
	}
}

```

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

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

У слоя нужно добавить свойство **conf** c именем расширения, чей конфиг нужно загрузить. В шаблоне conf уже бужет тем самым конфигом. conf наследуется от родительского слоя ко всем вложенным. В шаблон попадают только те свойства которые перечислены в свойстве `pub`.

### Например

[](#например)

Есть расширение testext с файлом .infra.json

```
{
	"pub":["js"],
	"js":"script.js"
}

```

У слоя указано

```
{
	"conf":"testext",
}

```

В шаблоне если вставить

```
Скрипт загружаемый вместе с расширением {conf.js}

```

Результат

```
Скрипт загружаемый вместе с расширением script.js

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Total

5

Last Release

2187d 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 (5 commits)")

### Embed Badge

![Health badge](/badges/akiyatkin-layer-conf/health.svg)

```
[![Health](https://phpackages.com/badges/akiyatkin-layer-conf/health.svg)](https://phpackages.com/packages/akiyatkin-layer-conf)
```

PHPackages © 2026

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