PHPackages                             lulco/nette-autoinject - 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. [Framework](/categories/framework)
4. /
5. lulco/nette-autoinject

ActiveLibrary[Framework](/categories/framework)

lulco/nette-autoinject
======================

Grouped autoinject of services in Nette Presenter

1.0.0(10y ago)056MITPHPPHP &gt;=5.4.0

Since Dec 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/lulco/nette-autoinject)[ Packagist](https://packagist.org/packages/lulco/nette-autoinject)[ RSS](/packages/lulco-nette-autoinject/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Nette autoinject
================

[](#nette-autoinject)

Grouped autoinject of services in Nette Presenter

Background
----------

[](#background)

If you have to inject some services to presenter just because you need them to initialize, your presenter looks like this:

```
class BasePresenter extends Presenter
{
    /** @var Some\Service1 @inject */
    public $service1;

	/** @var Some\Service2 @inject */
    public $service2;

	/** @var Some\Service3 @inject */
    public $service3;
}

```

So if you want to avoid this, you can use this library.

Usage
-----

[](#usage)

1. Register NetteAutoInject Manager to config.neon and add all services you want to be initialized in presenter:

```
services:
	...
	-
		class: Lulco\NetteAutoInject\Manager
		setup:
			- addService(Some\Service1())
			- addService(Some\Service2())
			- addService(Some\Service3())
	...

```

2. Inject Manager to Presenter:

```
class BasePresenter extends Presenter
{
    /** @var \Lulco\NetteAutoInject\Manager @inject */
    public $autoInject;
}

```

And that's it :)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3848d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9377319?v=4)[Michal Lulco](/maintainers/lulco)[@lulco](https://github.com/lulco)

---

Top Contributors

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

---

Tags

phpnettephinx

### Embed Badge

![Health badge](/badges/lulco-nette-autoinject/health.svg)

```
[![Health](https://phpackages.com/badges/lulco-nette-autoinject/health.svg)](https://phpackages.com/packages/lulco-nette-autoinject)
```

###  Alternatives

[pestphp/pest-plugin-stressless

Stressless plugin for Pest

68943.9k18](/packages/pestphp-pest-plugin-stressless)[alleyinteractive/pest-plugin-wordpress

WordPress Pest Integration

273.9k1](/packages/alleyinteractive-pest-plugin-wordpress)

PHPackages © 2026

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