PHPackages                             matej21/nette-autowire-component-factories - 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. matej21/nette-autowire-component-factories

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

matej21/nette-autowire-component-factories
==========================================

Lazy-Autowire of properties for Nette PresenterComponents.

4704PHP

Since Mar 6Pushed 13y ago2 watchersCompare

[ Source](https://github.com/matej21/nette-autowire-component-factories)[ Packagist](https://packagist.org/packages/matej21/nette-autowire-component-factories)[ RSS](/packages/matej21-nette-autowire-component-factories/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Autowire arguments in createComponent\* methods
===============================================

[](#autowire-arguments-in-createcomponent-methods)

discussion:  (czech only)

Include in application
----------------------

[](#include-in-application)

```
abstract class BasePresenter extends Nette\Application\UI\Presenter
{
	use \matej21\AutowireComponentFactories;

}
```

Usage
-----

[](#usage)

```
class FooPresenter extends BasePresenter
{

    public function createComponentBar(BarFactory $factory)
    {
        $component = $factory->create();
        return $component;

    }
}
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1276059?v=4)[David Matějka](/maintainers/matej21)[@matej21](https://github.com/matej21)

---

Top Contributors

[![matej21](https://avatars.githubusercontent.com/u/1276059?v=4)](https://github.com/matej21 "matej21 (2 commits)")

### Embed Badge

![Health badge](/badges/matej21-nette-autowire-component-factories/health.svg)

```
[![Health](https://phpackages.com/badges/matej21-nette-autowire-component-factories/health.svg)](https://phpackages.com/packages/matej21-nette-autowire-component-factories)
```

###  Alternatives

[barnabywalters/mf-cleaner

Cleans up microformats2 array structures

127.1k4](/packages/barnabywalters-mf-cleaner)

PHPackages © 2026

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