2017 © Pedro Peláez
 

library processor

A library for processing file contents.

image

box-project/processor

A library for processing file contents.

  • Friday, June 19, 2015
  • by kherge
  • Repository
  • 2 Watchers
  • 2 Stars
  • 122 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Build Status Latest Stable Version Latest Unstable Version Total Downloads, (*1)

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., (*2)

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., (*3)

Documentation

You can find the documentation in [Resources/docs][]., (*4)

Requirements

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

Suggested

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

License

This software is released under the MIT license., (*5)

The Versions

20/05 2015
19/05 2015

0.1.0

0.1.0.0 http://box-project.org

A library for processing file contents.

  Sources   Download

MIT

The Requires

 

The Development Requires