Download the PHP package tomaj/prepositioner without Composer
On this page you can find all versions of the php package tomaj/prepositioner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tomaj/prepositioner
More information about tomaj/prepositioner
Files in tomaj/prepositioner
Download tomaj/prepositioner
More information about tomaj/prepositioner
Files in tomaj/prepositioner
Please rate this library. Is it a good library?
Informations about the package prepositioner
Prepositioner
PHP Prepositioner for replacing prepositions with after preposition
Instalation
Install package via composer:
Usage
Simple usage without Factory is very simple:
This example replaces all occurences of 'one' or 'two' strings in as 'one ' and 'two '.
For using with Factory which contains language support try:
Extending
For new language support you need to implement new language class which implements LanguageInterface with prepositions. See SlovakLanguage for details.
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
Known issue
- each new language has to be in Tomaj\Prepositioner\Language namespace if you would like to use Factory
All versions of prepositioner with dependencies
PHP Build Version
Package Version
Requires
php Version
>= 7.2
The package tomaj/prepositioner contains the following files
Loading the files please wait ....