PHPackages                             ttskch/ray-di-bundle - 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. ttskch/ray-di-bundle

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

ttskch/ray-di-bundle
====================

29

Since Sep 26Compare

[ Source](https://github.com/ttskch/TtskchRayDiBundle)[ Packagist](https://packagist.org/packages/ttskch/ray-di-bundle)[ RSS](/packages/ttskch-ray-di-bundle/feed)WikiDiscussions Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

TtskchRayDiBundle
=================

[](#ttskchraydibundle)

[![Build Status](https://camo.githubusercontent.com/960ff22ca856adacb1cc8927515a82235321cc63d09eea3d6407465879cf8c49/68747470733a2f2f7472617669732d63692e6f72672f7474736b63682f5474736b6368526179446942756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ttskch/TtskchRayDiBundle)[![Latest Stable Version](https://camo.githubusercontent.com/5105c2cbe95fbf7d9f6cf2bd6e91356c27fe5a8f0b4b809411f3284404d19e30/68747470733a2f2f706f7365722e707567782e6f72672f7474736b63682f7261792d64692d62756e646c652f76657273696f6e)](https://packagist.org/packages/ttskch/ray-di-bundle)[![Total Downloads](https://camo.githubusercontent.com/84f37bf4a4759cb4df596e3f189309ccedfa35642f06c85bea2e4790f80a06ed/68747470733a2f2f706f7365722e707567782e6f72672f7474736b63682f7261792d64692d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/ttskch/ray-di-bundle)

Integration of [Ray.Di](https://github.com/ray-di/Ray.Di) into Symfony.

Getting started
---------------

[](#getting-started)

#### 1. Composer-require

[](#1-composer-require)

```
$ composer require ttskch/ray-di-bundle
```

#### 2. Register with AppKernel

[](#2-register-with-appkernel)

```
// app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Ttskch\RayDiBundle\TtskchRayDiBundle(),
        ];
        // ...
    }
    // ...
}
```

#### 3. Configure via config.yml

[](#3-configure-via-configyml)

```
# app/config/config.yml

ttskch_ray_di:
    module_class: 'Foo\BarModule'   # FQCN of your main Ray.Di `module`
```

Usage
-----

[](#usage)

When you configure your `module`...

```
class AppModule extends AbstractModule
{
    public function configure()
    {
        $this->bind(SomeServiceInterface::class)->to(SomeServiceConcrete::class);
    }
}
```

Then you can get `injector` from Symfony container like as below:

```
class SomeController extends Controller
{
    public function indexAction()
    {
        /** @var \Ray\Di\Injector $injector */
        $injector = $this->get('ttskch_ray_di.injector');

        $someService = $injector->getInstance(SomeServiceInterface::class);

        return new Response($someService->someMethod());
    }
}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

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/4360663?v=4)[Takashi Kanemoto](/maintainers/ttskch)[@ttskch](https://github.com/ttskch)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ttskch-ray-di-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ttskch-ray-di-bundle/health.svg)](https://phpackages.com/packages/ttskch-ray-di-bundle)
```

PHPackages © 2026

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