PHPackages                             symfonette/class-named-services - 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. symfonette/class-named-services

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

symfonette/class-named-services
===============================

1.0.0(9y ago)123MITPHPPHP ^5.5|^7.0

Since Jul 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/symfonette/class-named-services)[ Packagist](https://packagist.org/packages/symfonette/class-named-services)[ Docs](https://symfony.webuni.cz)[ RSS](/packages/symfonette-class-named-services/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

Class Named Services
====================

[](#class-named-services)

[![Packagist](https://camo.githubusercontent.com/95197be8fb6b960522477f158b20ddc5fbf3f6a69ec0aa01594b7cc99bbedd80/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796d666f6e657474652f636c6173732d6e616d65642d73657276696365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/symfonette/class-named-services)[![Build Status](https://camo.githubusercontent.com/0aa0e1794e98712e68a445ec76ab50c85fba0d861d25dcd4fb97bfbbe3456fa3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73796d666f6e657474652f636c6173732d6e616d65642d73657276696365732e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/symfonette/class-named-services)[![StyleCI](https://camo.githubusercontent.com/bb95f2709e734c7c7cca1fbee23cb8392d0e55e890dfdf37d3816e1eca6aca55/68747470733a2f2f7374796c6563692e696f2f7265706f732f35323630393136302f736869656c64)](https://styleci.io/repos/52609160)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/52aea990ccf7775e90fb0f4988e5fd76aa583973c068d5055cad09e7333af7c8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73796d666f6e657474652f636c6173732d6e616d65642d73657276696365732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/symfonette/class-named-services)[![SensioLabsInsight](https://camo.githubusercontent.com/17dd3fc52e6fe0969667bdd1b36c8870e9f164ae7f64adf73c8c16f76b5511d7/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f32663562363063632d353139652d343638632d613963632d3664306565643930383031322e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/2f5b60cc-519e-468c-a9cc-6d0eed908012)

All services can be accessed by FQCN.

Installation
------------

[](#installation)

This project can be installed via Composer:

```
composer require symfonette/class-named-services

```

#### Standalone

[](#standalone)

```
use Symfonette\ClassNamedServices\ContainerBuilderConfigurator;
use Symfony\Component\DependencyInjection\ContainerBuilder;

$builder = new ContainerBuilder();
$configurator = new ContainerBuilderConfigurator();

$configurator->configure($builder);
```

#### Symfony Bundle

[](#symfony-bundle)

```
use Symfonette\ClassNamedServices\Bundle\ClassNamedServiceBundle;
use Symfony\Component\HttpKernel\Kernel;

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        return [
            // ...
            new ClassNamedServiceBundle,
            // ...
        ];
    }
}
```

Usage
-----

[](#usage)

In dependency injection definition:

```
# app/config/services.yml
services:
    controller_main:
        class: AppBundle\Controller\MainController
        arguments:
            - '@Symfony\Bridge\Doctrine\RegistryInterface'
            - '@Twig_Environment'
```

In routing definition:

```
# app/config/routing.yml
homepage:
    path: /
    defaults:
      _controller: AppBundle\Controller\MainController:homepage
```

In controller:

```
namespace AppBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class ContactController extends Controller
{
    public function formAction()
    {
        $validator = $this->get(Validator::class);
        // ...
    }
}
```

###  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

3643d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/306adbad9084ed5c22aa85cbfce4899263466d76dff211b5c4c9f54dc23c40a1?d=identicon)[hason](/maintainers/hason)

---

Top Contributors

[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (9 commits)")

---

Tags

symfonydependency-injection

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/symfonette-class-named-services/health.svg)

```
[![Health](https://phpackages.com/badges/symfonette-class-named-services/health.svg)](https://phpackages.com/packages/symfonette-class-named-services)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)

PHPackages © 2026

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