An open API service indexing awesome lists of open source software.

https://github.com/klawdyo/php-inflector-br

Pluralize and Singularize words in portuguese
https://github.com/klawdyo/php-inflector-br

brasil brazil inflector php portugal portuguese portuguese-brazilian portuguese-language

Last synced: 7 months ago
JSON representation

Pluralize and Singularize words in portuguese

Awesome Lists containing this project

README

          

## Exemplos

### Instalação
```sh
composer require klawdyo/inflector-br
```

### Como usar
```php
/**
* Usando inflexões de palavras em português brasileiro
*/

use Inflector\Inflector;

//Transformando a palavra para o plural
echo Inflector::pluralize('mês');
//Retorna "meses"

//Transformando a palavra para o singular
echo Inflector::singularize('meses');
//Retorna "mês"
```