2017 © Pedro Peláez
 

library prepositioner

Preposition replace library

image

tomaj/prepositioner

Preposition replace library

  • Monday, September 5, 2016
  • by tomaj
  • Repository
  • 2 Watchers
  • 4 Stars
  • 2,762 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Prepositioner

PHP Prepositioner for replacing prepositions with   after preposition, (*1)

Code Climate Test Coverage Latest Stable Version License, (*2)

Instalation

Install package via composer:, (*3)

``` bash $ composer require tomaj/prepositioner, (*4)


Usage ----- Simple usage without *Factory* is very simple: ``` php $prepositioner = new Tomaj\Prepositioner\Prepositioner(['one', 'two']); $prepositioner->formatText($inputText);

This example replaces all occurences of 'one' or 'two' strings in $inputText as 'one ' and 'two '., (*5)

For using with Factory which contains language support try:, (*6)

php $prepositioner = Tomaj\Prepositioner\Factory::build('slovak') $prepositioner->formatText($inputText);, (*7)

Extending

For new language support you need to implement new language class which implements LanguageInterface with prepositions. See SlovakLanguage for details., (*8)

Upgrade

From version 2 to 3 - Minimum php version is 7.3 from now - If you are using custom Language file from otside or from this repository (and don't use Tomaj\Prepositioner\Factory) you have to change namespace from \Tomaj\Prepositioner\MyLanguage to \Tomaj\Prepositioner\Language\MyLanguage - Note: new version includes declare(strict_types=1); in all files, (*9)

Known issue

  1. each new language has to be in Tomaj\Prepositioner\Language namespace if you would like to use Factory

The Versions

05/09 2016

dev-master

9999999-dev

Preposition replace library

  Sources   Download

MIT

The Requires

  • php >= 5.3.7

 

The Development Requires

grammar slovak preposition

25/07 2014

1.1.3

1.1.3.0

Preposition replace library

  Sources   Download

LGPL

The Requires

  • php >= 5.3.7

 

The Development Requires

grammar slovak preposition

04/07 2014

1.1.2

1.1.2.0

Preposition replace library

  Sources   Download

LGPL

The Requires

  • php >= 5.3.7

 

The Development Requires

grammar slovak preposition

03/07 2014

1.1.1

1.1.1.0

Preposition replace library

  Sources   Download

LGPL

The Requires

  • php >= 5.3.7

 

The Development Requires

grammar slovak preposition

03/07 2014

1.1.0

1.1.0.0

Preposition replace library

  Sources   Download

LGPL

The Requires

  • php >= 5.3.7

 

The Development Requires

grammar slovak preposition

26/06 2014

1.0.0

1.0.0.0

Preposition replace library

  Sources   Download

LGPL

The Requires

  • php >= 5.3.7

 

The Development Requires

grammar slovak preposition