klawdyo / PHP-Inflector-BR

Pluralize and Singularize words in portuguese

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exemplos

Instalação

composer require klawdyo/inflector-br

Como usar

/**
 * 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"

About

Pluralize and Singularize words in portuguese

License:MIT License


Languages

Language:PHP 100.0%