PHPackages                             ublaboo/directory-register - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. ublaboo/directory-register

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

ublaboo/directory-register
==========================

Extension for Nette Framework: register all classes within configured directory (blacklist avalible)

v1.0.2(9y ago)36.6k↓25%2MITPHP

Since Jan 20Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ublaboo/directory-register)[ Packagist](https://packagist.org/packages/ublaboo/directory-register)[ Docs](http://ublaboo.paveljanda.com/directory-register)[ RSS](/packages/ublaboo-directory-register/feed)WikiDiscussions master Synced 1mo ago

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

[![Latest Stable Version](https://camo.githubusercontent.com/7329279797f72b58ec29115701c6a5562b264faff11afbda43420c6432b54a01/68747470733a2f2f706f7365722e707567782e6f72672f75626c61626f6f2f6469726563746f72792d72656769737465722f762f737461626c65)](https://packagist.org/packages/ublaboo/directory-register)[![License](https://camo.githubusercontent.com/0c5f604fb64a98ad3a05f6c0ea724836fc02aeaac4ddc308145a34d0e19a18e4/68747470733a2f2f706f7365722e707567782e6f72672f75626c61626f6f2f6469726563746f72792d72656769737465722f6c6963656e7365)](https://packagist.org/packages/ublaboo/directory-register)[![Total Downloads](https://camo.githubusercontent.com/039edc37765230faa11bb7208175b6b9f9c69d53d3b8aa17b99890706098048c/68747470733a2f2f706f7365722e707567782e6f72672f75626c61626f6f2f6469726563746f72792d72656769737465722f646f776e6c6f616473)](https://packagist.org/packages/ublaboo/directory-register)[![Gitter](https://camo.githubusercontent.com/37b71e1ce183f4ee630f818196f982c56f4c223c1d829b4d6baa0c3a07fdcf9f/68747470733a2f2f696d672e736869656c64732e696f2f6769747465722f726f6f6d2f6e776a732f6e772e6a732e737667)](https://gitter.im/ublaboo/help)

DirectoryRegister
=================

[](#directoryregister)

Register extension in config.neon:

```
extensions:
    autoRegister: Ublaboo\DirectoryRegister\DI\AutoRegisterExtension
```

With this extension, all classes within specified directories will be automatically registered in DIC. E.g.:

```
autoRegister:
    dirs: [
        App\Forms: %appDir%/Forms,
        App\ORM\Repository: %appDir%/ORM/Repository
    ]
    interfaces: [
        IFormFactory: %appDir%/Forms,
    ]
    skip: [App\Forms\ContactFormFactory]
```

Always you have to specify namespace for classes in partucular directory. Let's take following directorystructure as an example:

```
app/
    Forms/
        ContactFormFactory.php
        ProductFormFactory.php
        SignInFormFactory.php
        FooFormFactory.php
        BarFormFactory.php
        BazFormFactory.php

```

See, now above configuration will be the same as writing all these lines in `config.neon`:

```
services:
    - App\Forms\ProductFormFactory
    - App\Forms\SignInFormFactory
    - App\Forms\FooFormFactory
    - App\Forms\BarFormFactory
    - App\Forms\BazFormFactory
```

PSR
---

[](#psr)

This extension is simple and fast, but only works with projects that stick to PSR-0 or PSR-4. So you have to have all automatically registered classes named same as the file is and neither of your files can contain other classes.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~131 days

Total

3

Last Release

3508d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1488874?v=4)[Pavel Janda](/maintainers/paveljanda)[@paveljanda](https://github.com/paveljanda)

---

Top Contributors

[![paveljanda](https://avatars.githubusercontent.com/u/1488874?v=4)](https://github.com/paveljanda "paveljanda (13 commits)")[![martinknor](https://avatars.githubusercontent.com/u/2004222?v=4)](https://github.com/martinknor "martinknor (1 commits)")

---

Tags

lognettemailextensionmailing

### Embed Badge

![Health badge](/badges/ublaboo-directory-register/health.svg)

```
[![Health](https://phpackages.com/badges/ublaboo-directory-register/health.svg)](https://phpackages.com/packages/ublaboo-directory-register)
```

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[contributte/mailing

Sending emails with pleasure and prepared templates.

16961.0k2](/packages/contributte-mailing)[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3456.3k](/packages/lav45-yii2-activity-logger)[kriss/yii2-log-reader

Yii2 log reader

1340.1k1](/packages/kriss-yii2-log-reader)[opengento/module-webapi-logger

This module allows you to analyze all the webapi rest done call toward your Magento.

1014.9k](/packages/opengento-module-webapi-logger)

PHPackages © 2026

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