Documentation

Inflector
in package
implements InflectorInterface

Default inflection implementation

Table of Contents

Interfaces

InflectorInterface
Inflector interface used to convert the casing of words

Properties

$default  : InflectorInterface

Methods

camel()  : string
Converts strings from snake_case to upper CamelCase
getDefault()  : MemoizingInflector
Get the default inflector object that has support for caching
snake()  : string
Converts strings from camel case to snake case (e.g. CamelCase camel_case).

Properties

Methods

camel()

Converts strings from snake_case to upper CamelCase

public camel(mixed $word) : string
Parameters
$word : mixed

Value to convert into upper CamelCase

Return values
string

snake()

Converts strings from camel case to snake case (e.g. CamelCase camel_case).

public snake(mixed $word) : string
Parameters
$word : mixed

Word to convert to snake case

Return values
string
Loading…
On this page

Search results