PHPackages                             litphp/air - 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. litphp/air

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

litphp/air
==========

simple &amp; smart dependency injection

v0.9.2(6y ago)02354ISCPHPPHP ^7.1CI failing

Since Oct 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/litphp/air)[ Packagist](https://packagist.org/packages/litphp/air)[ RSS](/packages/litphp-air/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (2)Versions (13)Used By (4)

Lit Air
=======

[](#lit-air)

> Dependency Injection for Lit

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b0a11a0bdd3ecd58b867e05aa67041fea0137b41679a2db374ce3fcf946c830a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c69747068702f6169722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/litphp/air/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/c646f1130ddcf21982ac8eeb22c12e693430d07b0962bba465a9d4eeeef0f777/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c69747068702f6169722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/litphp/air/?branch=master)[![Build Status](https://camo.githubusercontent.com/dcb7bb55aadfe91763048d9c506c0d2b3ee291b6e30d7c144391bd67eb2d7a84/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c69747068702f6169722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/litphp/air/build-status/master)

[Documentation](http://litphp.github.io/docs/air)

### Features

[](#features)

- PSR-11 compliant
- Recipe (for singleton, alias, lazy instantiate, etc.)
- Delegate lookup

    - works with composite container pattern
    - provide features for other container
- Smart autowire

    ```
    Factory::of($container)->produce($className[, $extraParameters]);
    ```

    - in addition to classname, search parameter name &amp; position for dependency
    - parameter with default value can safely ignored
    - provide extra parameter at call time
- Method injection and injected instantiate

    ```
    Factory::of($container)->instantiate($className[, $extraParameters]); //this won't write $className to $container
    Factory::of($container)->invoke($callback[, $extraParameters]);
    ```

    - one-shot dependency injection
- Configure your container with several approach

    - chained method call (php native)
    - php array
    - ​json/yaml (not yet)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.3% 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 ~68 days

Recently: every ~103 days

Total

12

Last Release

2392d ago

PHP version history (2 changes)v0.1.1PHP ^7.1

v0.1.4PHP ^7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/775be499f40ae974a25327900e28fa6eba931b1c7a4332097d027127ba582ba2?d=identicon)[mcfog](/maintainers/mcfog)

---

Top Contributors

[![mcfog](https://avatars.githubusercontent.com/u/524075?v=4)](https://github.com/mcfog "mcfog (133 commits)")[![NicolasCARPi](https://avatars.githubusercontent.com/u/3043706?v=4)](https://github.com/NicolasCARPi "NicolasCARPi (1 commits)")

---

Tags

dependency-injectionphpphp-librarypsr-11

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/litphp-air/health.svg)

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

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k431.1M7.5k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

704122.9M10.1k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31278.1M2.0k](/packages/illuminate-container)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)

PHPackages © 2026

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