2017 © Pedro Peláez
 

library textconveyor

Send any text over a conveyor to format it.

image

jeroen-g/textconveyor

Send any text over a conveyor to format it.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

TextConveyor

Latest Version on Packagist ![Build Status][ico-travis] StyleCI, (*1)

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

Installation

Via Composer, (*3)

``` bash $ composer require jeroen-g/textconveyor, (*4)


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 ```php $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:, (*5)

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

Contributing

Please see contributing.md for details and a todolist., (*7)

License

license. Please see the license file for more information., (*8)

The Versions

26/04 2018

dev-master

9999999-dev https://github.com/Jeroen-G/textconveyor

Send any text over a conveyor to format it.

  Sources   Download

EUPL-1.1

The Requires

 

The Development Requires

text formatting

26/04 2018

1.1

1.1.0.0 https://github.com/Jeroen-G/textconveyor

Send any text over a conveyor to format it.

  Sources   Download

EUPL-1.1

The Requires

 

The Development Requires

text formatting

23/03 2018

1.0

1.0.0.0 https://github.com/Jeroen-G/textconveyor

Send any text over a conveyor to format it.

  Sources   Download

EUPL-1.1

The Requires

 

The Development Requires

text formatting

23/03 2018

dev-analysis-XplK9Z

dev-analysis-XplK9Z https://github.com/Jeroen-G/textconveyor

Send any text over a conveyor to format it.

  Sources   Download

EUPL-1.1

The Requires

 

The Development Requires

text formatting