jeroen-g/textconveyor 问题修复 & 功能扩展

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

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

jeroen-g/textconveyor

Composer 安装命令:

composer require jeroen-g/textconveyor

包简介

Send any text over a conveyor to format it.

README 文档

README

Latest Version on Packagist Build Status StyleCI

The TextConveyor takes your text, whatever size, and runs it through a list of formatters that is defined by you.

Installation

Via Composer

$ composer require jeroen-g/textconveyor

In case you're using Laravel, a service provider and facade get registered automatically. With artisan vendor:publish you can alter the formatters that get set in the config file.

Usage

$assembler = new JeroenG\TextConveyor\Assembler;
$assembler->setFormatters([App\RemoveBadWords::class, App\LowercaseNames::class]);
$assembler->addFormatter(App\CapitalizeNames::class);
$assembler->removeFormatter(App\LowercaseNames::class);
$formattedText = $assembler->sendContentThroughFormatters($content);

This is how it could be used in an Eloquent model:

public function getBodyAttribute($body)
{
    return app(JeroenG\TextConveyor\Assembler::class)->sendContentThroughFormatters($body);
}

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details and a todolist.

License

license. Please see the license file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: EUPL-1.1
  • 更新时间: 2018-03-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固