PHPackages                             ilya/little - 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. ilya/little

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

ilya/little
===========

Laughably simple IoC container

1.0.1(11y ago)024MITPHP

Since Mar 29Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/34ee192507a01ee718464054172660dc9aad68993248d1c822a1dae255209880/68747470733a2f2f7472617669732d63692e6f72672f696c79612d6465762f6c6974746c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ilya-dev/little)

**Little** is a very small IoC container written in PHP just for fun. This project is heavily inspired by the Laravel IoC container.

**Little** supports automatic dependency resolution, singletons and binding existing instances into the container.

**Little** consists of ~200 lines of code (including comments) and 5 methods available to you:

- `void bind(string $abstract, string|Closure $concrete)`
- `mixed make(string $abstract)`
- `void singleton(string $abstract, string|Closure $concrete)`
- `void instance(string $abstract, mixed $instance)`
- `Closure share(Closure $closure)`
- `boolean bound(string $abstract)`

Believe it or not, that's it!

Installation
============

[](#installation)

```
composer require "ilya/little:~1"

```

Examples
========

[](#examples)

Check out the `examples` folder. To run the demo, type:

```
php examples/demo.php

```

License
=======

[](#license)

The MIT license, check out the `LICENSE` file.

P.S. follow [the author](https://twitter.com/ilya_s_dev) on Twitter

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

4371d ago

Major Versions

0.9 → 1.02014-03-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/776b7b64a5d05531a18e8874c09069a25dce24b2e3efa60ea521e25e9a35281a?d=identicon)[ilya.s](/maintainers/ilya.s)

---

Top Contributors

[![ilya-dev](https://avatars.githubusercontent.com/u/6959318?v=4)](https://github.com/ilya-dev "ilya-dev (20 commits)")

### Embed Badge

![Health badge](/badges/ilya-little/health.svg)

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

PHPackages © 2026

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