2017 © Pedro Peláez
 

library component-inflector

Multilingual inflector that can singularize and pluralize words.

image

enflow/component-inflector

Multilingual inflector that can singularize and pluralize words.

  • Sunday, September 10, 2017
  • by enflow
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,816 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Singularize and pluralize words in multiple languages

Latest Version on Packagist Software License Build Status Total Downloads, (*1)

The enflow/component-inflector package provides a easy way to singularize and pluralize words in multiple languages., (*2)

The following languages are currently supported. Pull requests are welcome! - English (en) - Dutch (nl), (*3)

Component is based on cakephp/utility and noud/cakephp-dutch., (*4)

Installation

You can install the package via composer:, (*5)

``` bash composer require enflow/component-inflector, (*6)


## Usage ``` php use Enflow\Component\Inflector\Inflector; $inflector = Inflector::forLanguageCode('en'); echo $inflector->singularize('apples') // Outputs: apple echo $inflector->pluralize('apple') // Outputs: apples

Or specify a custom language which extends the abstract Language class: ``` php use Enflow\Component\Inflector\Inflector;, (*7)

$inflector = Inflector::forLanguage(new YourLanguageClass());, (*8)


## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING for details., (*9)

Security

If you discover any security related issues, please email michel@enflow.nl instead of using the issue tracker., (*10)

Credits

Special thanks to Freek Van der Herten for providing the package template & multiple useful packages., (*11)

About Enflow

Enflow is a digital creative agency based in Alphen aan den Rijn, Netherlands. We specialize in developing web applications, mobile applications and websites. You can find more info on our website., (*12)

License

The MIT License (MIT). Please see License File for more information., (*13)

The Versions

10/09 2017

dev-master

9999999-dev https://github.com/enflow-nl/component-inflector

Multilingual inflector that can singularize and pluralize words.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

inflector multilingual singularize pluralize enflow

06/04 2017

v0.2.0

0.2.0.0 https://github.com/enflow-nl/component-inflector

Multilingual inflector that can singularize and pluralize words.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

inflector multilingual singularize pluralize enflow

11/09 2016

0.2.0

0.2.0.0 https://github.com/enflow-nl/component-inflector

Multilingual inflector that can singularize and pluralize words.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

inflector multilingual singularize pluralize enflow

06/07 2016

0.1.0

0.1.0.0 https://github.com/enflow-nl/component-inflector

Multilingual inflector that can singularize and pluralize words.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

inflector multilingual singularize pluralize enflow