LaravelPluralizer

Summary

No public properties found
No constants found
No private methods found
No private properties found
N/A
File
pluralizer.php
Package
Default
Class hierarchy
LaravelPluralizer

Tags

None found

Properties

$config

$config : array

The "strings" configuration array.

Type

array

Tags

None found

$plural

$plural : 

The cached copies of the plural inflections.

Type

Tags

None found

$singular

$singular : array

The cached copies of the singular inflections.

Type

array

Tags

None found

Methods

__construct()

__construct(array  $config) : void

Create a new pluralizer instance.

Parameters

array $config

Tags

None found

singular()

singular(string  $value) : string

Get the singular form of the given word.

Parameters

string $value

Returns

string

Tags

None found

plural()

plural(string  $value, integer  $count = 2) : string

Get the plural form of the given word.

Parameters

string $value
integer $count

Returns

string

Tags

None found

auto()

auto(string  $value, array  $source, array  $irregular) : string

Perform auto inflection on an English word.

Parameters

string $value
array $source
array $irregular

Returns

string

Tags

None found