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

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

box-project/processor
=====================

A library for processing file contents.

0.3.1(10y ago)1161MITPHPPHP &gt;=5.4

Since May 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/box-project/processor)[ Packagist](https://packagist.org/packages/box-project/processor)[ Docs](http://box-project.org)[ RSS](/packages/box-project-processor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (6)Used By (0)

[![Build Status](https://camo.githubusercontent.com/2bc797fbf64fbf205eea4d318f03918f4c2cdab453236eb267154258859d203e/68747470733a2f2f7472617669732d63692e6f72672f626f782d70726f6a6563742f70726f636573736f722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/box-project/processor)[![Latest Stable Version](https://camo.githubusercontent.com/1ee60ab31026da16bae05ae01ec5bde8e99fd6273ea87d4b545e99a4e5e6cb62/68747470733a2f2f706f7365722e707567782e6f72672f626f782d70726f6a6563742f70726f636573736f722f762f737461626c652e706e67)](https://packagist.org/packages/box-project/processor)[![Latest Unstable Version](https://camo.githubusercontent.com/f3369268086ef6dfc9ee60204fbc9721e26fe198746e8f993b5fbff6545cac18/68747470733a2f2f706f7365722e707567782e6f72672f626f782d70726f6a6563742f70726f636573736f722f762f756e737461626c652e706e67)](https://packagist.org/packages/box-project/processor)[![Total Downloads](https://camo.githubusercontent.com/6741010e650776c8d34333deca9e68e93ae44fbae4413edadadb0441891f0fea/68747470733a2f2f706f7365722e707567782e6f72672f626f782d70726f6a6563742f70726f636573736f722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/box-project/processor)

Processor
=========

[](#processor)

```
composer require box-project/processor

```

Processor simplifies the process of manipulating the contents of one or more files. With support for an event dispatcher, the process itself can also be modified or interrupted.

```
use Box\Component\Processor\Processor\Any\ReplaceProcessor;

$processor = new ReplaceProcessor();
$processor->setReplacement('/{{\s*name\s*}}/', 'world');
$processor->setExtensions(array('txt'));

// "Hello, world!"
echo $processor->processContents('example.txt', 'Hello, {{ name }}!');
```

> It may be important to note that this library is primarily designed to work with PHP archive (phar) building processes. Incompatibilities with non-phar related processes are a secondary concern and may not be patched if in conflict.

Documentation
-------------

[](#documentation)

You can find the documentation in [`Resources/docs`](/Resources/docs/).

Requirements
------------

[](#requirements)

- `kherge/file` ~1.3
- `herrera-io/object-storage` ~1.0
- `psr/log` ~1.0

### Suggested

[](#suggested)

- `monolog/monolog` ~1.6
- `symfony/dependency-injection` ~2.5
- `symfony/event-dispatcher` ~2.5

License
-------

[](#license)

This software is released under the MIT license.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

4000d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9122157?v=4)[Kevin Herrera](/maintainers/kherge)[@kherge](https://github.com/kherge)

---

Top Contributors

[![kherge](https://avatars.githubusercontent.com/u/9122157?v=4)](https://github.com/kherge "kherge (28 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/box-project-processor/health.svg)

```
[![Health](https://phpackages.com/badges/box-project-processor/health.svg)](https://phpackages.com/packages/box-project-processor)
```

###  Alternatives

[sonata-project/media-bundle

Symfony SonataMediaBundle

4625.5M71](/packages/sonata-project-media-bundle)[puli/repository

A filesystem-like repository for storing arbitrary resources.

44287.6k32](/packages/puli-repository)

PHPackages © 2026

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