box-project/processor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

box-project/processor

最新稳定版本:0.3.1

Composer 安装命令:

composer require box-project/processor

包简介

A library for processing file contents.

README 文档

README

Build Status Latest Stable Version Latest Unstable Version Total Downloads

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

You can find the documentation in Resources/docs.

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.

统计信息

  • 总下载量: 161
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-18