PHPackages                             metalguardian/yii-file-processor - 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. metalguardian/yii-file-processor

AbandonedArchivedYii-module

metalguardian/yii-file-processor
================================

v0.1.1(12y ago)38633[1 issues](https://github.com/MetalGuardian/yii-file-processor/issues)MITPHP

Since Mar 3Pushed 11y agoCompare

[ Source](https://github.com/MetalGuardian/yii-file-processor)[ Packagist](https://packagist.org/packages/metalguardian/yii-file-processor)[ RSS](/packages/metalguardian-yii-file-processor/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Install
-------

[](#install)

in config/main.php:

```
	Yii::setPathOfAlias('fileProcessor', '/path/to/extension/');

```

example for standard yii structure when this module located in extension dir:

```
	Yii::setPathOfAlias('fileProcessor', dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'extensions' . DIRECTORY_SEPARATOR . 'yii-file-processor' . DIRECTORY_SEPARATOR . 'fileProcessor');

```

application config:

```
	...
	'controllerMap' => array(
		'image' => array(
			'class' => '\fileProcessor\controllers\ImageController',
		),
	),
	...

```

if you merge main config with console config, you need unset controllerMap key

modules section:

```
	'file-processor' => array(
		'baseDir' => realpath(
				__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'www'
			) . DIRECTORY_SEPARATOR,
		'imageSections' => array(
			'admin' => array(
				'default' => array(
					'width' => 100,
					'height' => 100,
					'quality' => 100,
					'do' => 'resize', // resize|adaptiveResize
				),
			),
		),
		'imageHandler' => array(
			'driver' => '\fileProcessor\extensions\imageHandler\drivers\MDriverGD',
			// '\fileProcessor\extensions\imageHandler\drivers\MDriverImageMagic'
		),
	),

```

component section:

```
	'urlManager'=>array(
		...
		'rules'=>array(
			...
			array(
				'class' => '\fileProcessor\components\YiiFileProcessorUrlRule',
				'connectionId' => 'db',
				'cacheId' => 'cache',
				'controllerId' => 'image',
			),
			// controllerId - name of the controller, which you set in controller map
			...
		),
	),

```

add behavior to the model:

```
	'fileBehavior' => array(
		'class' => '\fileProcessor\components\FileUploadBehavior',
		'attributeName' => 'file_id',
		'fileTypes' => 'png, gif, jpeg, jpg',
	),

```

Run command:

```
	php protected/yiic.php migrate --migrationPath=application.extensions.yii-file-processor.fileProcessor.migrations

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

4453d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9c4538fa5cd95fe3ad0e4e98c7d5dba9c4a0145bc6cb8506c82d6a9f75b30c1?d=identicon)[MetalGuardian](/maintainers/MetalGuardian)

---

Top Contributors

[![MetalGuardian](https://avatars.githubusercontent.com/u/1168520?v=4)](https://github.com/MetalGuardian "MetalGuardian (50 commits)")

### Embed Badge

![Health badge](/badges/metalguardian-yii-file-processor/health.svg)

```
[![Health](https://phpackages.com/badges/metalguardian-yii-file-processor/health.svg)](https://phpackages.com/packages/metalguardian-yii-file-processor)
```

PHPackages © 2026

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