PHPackages                             lajax/yii2-project-scanner - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. lajax/yii2-project-scanner

ActiveYii2-extension[File &amp; Storage](/categories/file-storage)

lajax/yii2-project-scanner
==========================

Yii2 Project Scanner Extension

1.0.0(9y ago)0232BSD-3-ClausePHP

Since Sep 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lajax/yii2-project-scanner)[ Packagist](https://packagist.org/packages/lajax/yii2-project-scanner)[ RSS](/packages/lajax-yii2-project-scanner/feed)WikiDiscussions master Synced 2mo ago

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

Yii2 Project Scanner
====================

[](#yii2-project-scanner)

Yii2 Project Scanner Extension

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

[](#installation)

\##composer

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require lajax/yii2-project-scanner

```

or add

```
"lajax/yii2-project-scanner": "^1.0.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

\##Configs

\###Minimal configs

```
[
    'components' => [
        // ...
        'scanner' =>  lajax\projectscanner\Scanner::className(),
        // ...
    ],
],
```

\###Full configs

```
[
    'components' => [
        // ...
        'scanner' =>  [
            'class' => lajax\projectscanner\Scanner::className(),
            'scanTimeLimit' => null,
            'ignoredCategories' => [],
            'ignoredItems' => [
                '.svn',
                '.git',
                '.gitignore',
                '.gitattributes',
                '.gitkeep',
                '.hgignore',
                '.hgkeep',
                '/messages',
                '/BaseYii.php',
                'runtime',
                'bower',
                'nikic',
            ],
            'roots' => [
                '@backend',
                '@common',
                '@console',
                '@frontend',
                '@vendor',
            ],
            'scanners' => [
                'dbScanner' => [
                    'class' => lajax\projectscanner\scanners\DbScanner::className(),
                    'category' => 'database',
                    'tables' => [
                        [
                            'connection' => 'db',
                            'table' => 'language',
                            'columns' => ['name', 'name_ascii'],
                            'category' => 'tableName',
                        ],
                        [
                            'connection' => 'db',
                            'table' => 'tag',
                            'columns' => ['name'],
                            'category' => 'tableName',
                        ],
                        [
                            'connection' => 'db',
                            'table' => 'category',
                            'columns' => ['name', 'description'],
                        ],
                    ],
                ],
                'jsScanner' => [
                    'class' => lajax\projectscanner\scanners\JsScanner::className(),
                    'extension' => '*.js',
                    'translators' => ['lajax.t'],
                    'category' => 'javascript',

                ],
                'phpArrayScanner' => [
                    'class' => lajax\projectscanner\scanners\PhpArrayScanner::className(),
                    'extension' => '*.php',
                    'category' => 'array',
                    'patternArrayTranslator' => '#\@translate[^\$]+(?P[\w\d\s_]+[^\(\[]+)#s',

                ],
                'phpFunctionScanner' => [
                    'class' => lajax\projectscanner\scanners\PhpFunctionScanner::className(),
                    'extension' => '*.php',
                    'translators' => ['::t'],
                ],
            ],
        ],
        // ...
    ],
],

##Scanning project

```php
$scannerResult = \Yii::$app->scanner->execute();
```

\###result

```
$scannerResult->languageElements;       *Array* List of language elements.
                                        [
                                            ['category' => 'messageCategory', 'message' => 'languageElement'],
                                            ['category' => 'messageCategory', 'message' => 'languageElement'],
                                            // ...
                                        ]
$scannerResult->numberOfLanguageElements;  *Integer* Number of language elements.

$scannerResult->filteredLanguageElements;   *Array* List of language elements.
                                        [
                                            'messageCategory' => [
                                                'languageElement' => true
                                            ]
                                        ]
                                        [
                                            'messageCategory' => [
                                                'languageElement' => true
                                            ]
                                        ]
                                        [
                                            'messageCategory' => [
                                                'languageElement' => true
                                            ]
                                        ]
```

Links
-----

[](#links)

- [GitHub](https://github.com/lajax/yii2-project-scanner)
- [ApiDocs](https://lajax.github.io/yii2-project-scanner)
- [Packagist](https://packagist.org/packages/lajax/yii2-project-scanner)
- [Yii Extensions](http://www.yiiframework.com/extension/yii2-project-scanner)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3536d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92584220fadca858bc97cc515957be2a1058a58ff95adde7a3c076d3eb7e1026?d=identicon)[lajax](/maintainers/lajax)

---

Top Contributors

[![lajax](https://avatars.githubusercontent.com/u/5390245?v=4)](https://github.com/lajax "lajax (1 commits)")

---

Tags

filesystemyii2extensionscannerproject-scanner

### Embed Badge

![Health badge](/badges/lajax-yii2-project-scanner/health.svg)

```
[![Health](https://phpackages.com/badges/lajax-yii2-project-scanner/health.svg)](https://phpackages.com/packages/lajax-yii2-project-scanner)
```

###  Alternatives

[fedemotta/yii2-aws-sdk

This extension provides the AWS SDK integration for the Yii2 framework

15430.4k2](/packages/fedemotta-yii2-aws-sdk)[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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