PHPackages                             yottacms/yotta-unit-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. yottacms/yotta-unit-bundle

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

yottacms/yotta-unit-bundle
==========================

Yotta unit manager bundle

v0.1.6(8y ago)0601MITPHPPHP &gt;=7.1

Since Oct 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/yottacms/yotta-unit-bundle)[ Packagist](https://packagist.org/packages/yottacms/yotta-unit-bundle)[ RSS](/packages/yottacms-yotta-unit-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (8)Used By (1)

YottaCMS unit manager
=====================

[](#yottacms-unit-manager)

Пакетный менеджер бандлов для YottaCMS

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

[](#installation)

```
composer require yottacms/yotta-unit-bundle
```

Usage
-----

[](#usage)

```
# app/config/services.yml
\UnitExample:
    arguments: ['@service_container']
    tags:
        - { name: yotta.unit, priority: 300 }
```

Recommendations
---------------

[](#recommendations)

Настройку юнит-сервиса лучше всего делать следующим образом:

```
# app/config/config.yml
yotta_unit:
    items:
        unit_example:
            type: "bundle"      # widget | system
            name: "Unit Info"
            description: "Unit information"
            icon: "info" # optional
            version: "0.0.1"    # optional
            # if bundle | widget
            entry_point: "/info" # path to entry point
            developer: true # set true to developer's bundle
```

```
// UnitExample.php
use Symfony\Component\DependencyInjection\ContainerInterface;
use YottaCms\Bundle\YottaUnitBundle\UnitManager\UnitInterface;

class UnitExample implements UnitInterface
{
    const PARAMETER_KEY = 'unit_example';

    protected $configUnit;

    public function __construct(ContainerInterface $container)
    {
        if (!isset($container->getParameter('yotta_unit.items')[self::PARAMETER_KEY])) {
            throw new \Exception('Parameters "' . self::PARAMETER_KEY . '" not found in yotta_unit.items');
        }

        $this->configUnit = $container->getParameter('yotta_unit.items')[self::PARAMETER_KEY];
    }

    /**
     * @inheritdoc
     */
    public function getName(): string
    {
        return $this->configUnit['name'];
    }

    /**
     * @inheritdoc
     */
    public function getDescription(): ?string
    {
        return $this->configUnit['description'];
    }

    /**
     * @inheritdoc
     */
    public function getEntryPoint(): ?string
    {
        return $this->configUnit['entry_point'];
    }

    /**
     * @inheritdoc
     */
    public function getConfig(): array
    {
        return $this->configUnit;
    }

    /**
     * @inheritdoc
     */
    public function getType(): string
    {
        return $this->configUnit['type'];
    }
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Total

7

Last Release

3130d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fe87a363f90be83c29cd477837f8b6fda65876ba5b848c661438a5b801e37e2?d=identicon)[yottacms](/maintainers/yottacms)

---

Top Contributors

[![dirmax](https://avatars.githubusercontent.com/u/69081?v=4)](https://github.com/dirmax "dirmax (6 commits)")

---

Tags

symfonybundledependenciesyottacms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yottacms-yotta-unit-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/yottacms-yotta-unit-bundle/health.svg)](https://phpackages.com/packages/yottacms-yotta-unit-bundle)
```

###  Alternatives

[mmoreram/symfony-bundle-dependencies

Dependencies resolver for Symfony Bundles

57191.7k54](/packages/mmoreram-symfony-bundle-dependencies)[symfony-bundles/bundle-dependency

Symfony BundleDependency Component

19135.9k7](/packages/symfony-bundles-bundle-dependency)[ekreative/uuid-extra-bundle

Paramconverter, Normalizer and Form Type for Ramsey Uuid

18168.6k](/packages/ekreative-uuid-extra-bundle)

PHPackages © 2026

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