PHPackages                             pavlakis/seaudi - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. pavlakis/seaudi

AbandonedArchivedLibrary[PSR &amp; Standards](/categories/psr-standards)

pavlakis/seaudi
===============

A semi-automatic DI resolver retrieving dependencies through a container.

0.2(10y ago)0531BSD-3-ClausePHPPHP &gt;=5.3

Since Dec 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/pavlakis/seaudi)[ Packagist](https://packagist.org/packages/pavlakis/seaudi)[ Docs](http://github.com/pavlakis/seaudi)[ RSS](/packages/pavlakis-seaudi/feed)WikiDiscussions master Synced 3w ago

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

[![Build Status](https://camo.githubusercontent.com/72fec24c5b46a85a551245f188d297f8a79fb50c876bfabbaf339da58702f70c/68747470733a2f2f7472617669732d63692e6f72672f7061766c616b69732f7365617564692e737667)](https://travis-ci.org/pavlakis/seaudi)

Semi-Automatic Dependency Injection
===================================

[](#semi-automatic-dependency-injection)

Resolving class dependencies which have already been set in the DI Container.

It is using a container compatible with the [Interop Container interface](https://github.com/container-interop/container-interop) and by using Reflection, it tries to match type hints to keys in the container.

When passing a class name, it expects its dependencies to exist as fully qualified class named keys in that container.

e.g. Slim 3 example

### For a basic action class

[](#for-a-basic-action-class)

```
namespace PHPMinds\Action;

use Slim\Views\Twig;
use Psr\Log\LoggerInterface;
use Slim\Http\Request;
use Slim\Http\Response;

class NotFoundAction
{
    private $view;
    private $logger;

    public function __construct(Twig $view, LoggerInterface $logger)
    {
        $this->view = $view;
        $this->logger = $logger;

    }

    public function dispatch(Request $request, Response $response, $args)
    {

        $this->view->render($response, '404.twig');
        return $response;
    }
}

```

### When we have passed its dependencies

[](#when-we-have-passed-its-dependencies)

```
// Slim 3 example
$container = $app->getContainer();

// Twig
$container['Slim\Views\Twig'] = function ($c) {
    $settings = $c->get('settings');
    $view = new \Slim\Views\Twig($settings['view']['template_path'], $settings['view']['twig']);

    // Add extensions
    $view->addExtension(new Slim\Views\TwigExtension($c->get('router'), $c->get('request')->getUri()));
    $view->addExtension(new Twig_Extension_Debug());

    return $view;
};

// monolog
$container['Psr\Log\LoggerInterface'] = function ($c) {
    $settings = $c->get('settings');
    $logger = new \Monolog\Logger($settings['logger']['name']);
    $logger->pushProcessor(new \Monolog\Processor\UidProcessor());
    $logger->pushHandler(new \Monolog\Handler\StreamHandler($settings['logger']['path'], \Monolog\Logger::DEBUG));
    return $logger;
};

```

### We can now resolve its dependencies directly

[](#we-can-now-resolve-its-dependencies-directly)

```
$injector = new \pavlakis\seaudi\Injector($container);

$injector->add('PHPMinds\Action\NotFoundAction');

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~6 days

Total

2

Last Release

3825d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/673223?v=4)[Antonios Pavlakis](/maintainers/pavlakis)[@pavlakis](https://github.com/pavlakis)

---

Top Contributors

[![pavlakis](https://avatars.githubusercontent.com/u/673223?v=4)](https://github.com/pavlakis "pavlakis (8 commits)")

---

Tags

containerreflectionslimdiioc

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pavlakis-seaudi/health.svg)

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

###  Alternatives

[php-di/php-di

The dependency injection container for humans

2.8k53.2M1.2k](/packages/php-di-php-di)[slince/di

A flexible dependency injection container

20268.4k6](/packages/slince-di)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2859.2k2](/packages/capsule-di)[miladrahimi/phpcontainer

Dependency injection (IoC) container for PHP projects

1323.5k2](/packages/miladrahimi-phpcontainer)

PHPackages © 2026

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